From 9cbb8f104d66b9b1a5497e12cd931a3827f6b5b3 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Fri, 12 Apr 2019 06:41:14 +0200 Subject: [PATCH] Use https://www.php.net/ instead of https://secure.php.net/ Change-Id: I0acca592c6909e91b28b904da49dcbd6a43cd2a5 --- includes/AjaxResponse.php | 2 +- includes/DefaultSettings.php | 8 ++++---- includes/FormOptions.php | 2 +- includes/GlobalFunctions.php | 2 +- includes/PHPVersionCheck.php | 4 ++-- includes/WebRequest.php | 2 +- includes/WebRequestUpload.php | 2 +- includes/http/HttpRequestFactory.php | 4 ++-- includes/installer/i18n/en.json | 18 +++++++++--------- includes/libs/CSSMin.php | 4 ++-- includes/libs/filebackend/FSFileBackend.php | 2 +- .../libs/rdbms/database/DatabasePostgres.php | 2 +- includes/libs/rdbms/database/IDatabase.php | 12 ++++++------ includes/media/MediaHandler.php | 2 +- includes/media/XCFHandler.php | 2 +- includes/shell/Command.php | 2 +- includes/specials/SpecialBlock.php | 2 +- includes/utils/UIDGenerator.php | 2 +- languages/i18n/qqq.json | 18 +++++++++--------- maintenance/dev/includes/router.php | 2 +- maintenance/dev/installphp.sh | 2 +- maintenance/storage/compressOld.php | 2 +- tests/phpunit/includes/http/HttpTest.php | 6 +++--- .../phpunit/suites/ParserTestTopLevelSuite.php | 2 +- 24 files changed, 53 insertions(+), 53 deletions(-) diff --git a/includes/AjaxResponse.php b/includes/AjaxResponse.php index 8f4ed40489..5f889adb86 100644 --- a/includes/AjaxResponse.php +++ b/includes/AjaxResponse.php @@ -162,7 +162,7 @@ class AjaxResponse { // For back-compat, it is supported that mResponseCode be a string like " 200 OK" // (with leading space and the status message after). Cast response code to an integer // to take advantage of PHP's conversion rules which will turn " 200 OK" into 200. - // https://secure.php.net/manual/en/language.types.string.php#language.types.string.conversion + // https://www.php.net/manual/en/language.types.string.php#language.types.string.conversion $n = intval( trim( $this->mResponseCode ) ); HttpStatus::header( $n ); } diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 4dece5bfaf..828af495a4 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -782,7 +782,7 @@ $wgLockManagers = []; /** * Show Exif data, on by default if available. - * Requires PHP's Exif extension: https://secure.php.net/manual/en/ref.exif.php + * Requires PHP's Exif extension: https://www.php.net/manual/en/ref.exif.php * * @note FOR WINDOWS USERS: * To enable Exif functions, add the following line to the "Windows @@ -2100,7 +2100,7 @@ $wgDBerrorLog = false; * Defaults to the wiki timezone ($wgLocaltimezone). * * A list of usable timezones can found at: - * https://secure.php.net/manual/en/timezones.php + * https://www.php.net/manual/en/timezones.php * * @par Examples: * @code @@ -3170,7 +3170,7 @@ $wgForceUIMsgAsContentMsg = []; * timezone-nameinlowercase like timezone-utc. * * A list of usable timezones can found at: - * https://secure.php.net/manual/en/timezones.php + * https://www.php.net/manual/en/timezones.php * * @par Examples: * @code @@ -7640,7 +7640,7 @@ $wgCategoryPagingLimit = 200; * all languages in a mediocre way. However, it is better than "uppercase". * * To use the uca-default collation, you must have PHP's intl extension - * installed. See https://secure.php.net/manual/en/intl.setup.php . The details of the + * installed. See https://www.php.net/manual/en/intl.setup.php . The details of the * resulting collation will depend on the version of ICU installed on the * server. * diff --git a/includes/FormOptions.php b/includes/FormOptions.php index 53ddac9b19..a6e01cc0e8 100644 --- a/includes/FormOptions.php +++ b/includes/FormOptions.php @@ -381,7 +381,7 @@ class FormOptions implements ArrayAccess { /** @name ArrayAccess functions * These functions implement the ArrayAccess PHP interface. - * @see https://secure.php.net/manual/en/class.arrayaccess.php + * @see https://www.php.net/manual/en/class.arrayaccess.php */ /* @{ */ /** diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index cdbc27a9e9..b6a1470ee9 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -2050,7 +2050,7 @@ function wfMkdirParents( $dir, $mode = null, $caller = null ) { */ function wfRecursiveRemoveDir( $dir ) { wfDebug( __FUNCTION__ . "( $dir )\n" ); - // taken from https://secure.php.net/manual/en/function.rmdir.php#98622 + // taken from https://www.php.net/manual/en/function.rmdir.php#98622 if ( is_dir( $dir ) ) { $objects = scandir( $dir ); foreach ( $objects as $object ) { diff --git a/includes/PHPVersionCheck.php b/includes/PHPVersionCheck.php index 3f08a37cf4..2d9216dfaa 100644 --- a/includes/PHPVersionCheck.php +++ b/includes/PHPVersionCheck.php @@ -112,7 +112,7 @@ class PHPVersionCheck { 'vendor' => 'the PHP Group', 'upstreamSupported' => '5.6.0', 'minSupported' => '7.0.13', - 'upgradeURL' => 'https://secure.php.net/downloads.php', + 'upgradeURL' => 'https://www.php.net/downloads.php', ); } @@ -206,7 +206,7 @@ HTML; $missingExtText = ''; $missingExtHtml = ''; - $baseUrl = 'https://secure.php.net'; + $baseUrl = 'https://www.php.net'; foreach ( $missingExtensions as $ext ) { $missingExtText .= " * $ext <$baseUrl/$ext>\n"; $missingExtHtml .= "
  • $ext " diff --git a/includes/WebRequest.php b/includes/WebRequest.php index d5b081e624..2a03d2dc7d 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -382,7 +382,7 @@ class WebRequest { */ private function getGPCVal( $arr, $name, $default ) { # PHP is so nice to not touch input data, except sometimes: - # https://secure.php.net/variables.external#language.variables.external.dot-in-names + # https://www.php.net/variables.external#language.variables.external.dot-in-names # Work around PHP *feature* to avoid *bugs* elsewhere. $name = strtr( $name, '.', '_' ); if ( isset( $arr[$name] ) ) { diff --git a/includes/WebRequestUpload.php b/includes/WebRequestUpload.php index 34c606204c..c2d08b87fa 100644 --- a/includes/WebRequestUpload.php +++ b/includes/WebRequestUpload.php @@ -103,7 +103,7 @@ class WebRequestUpload { /** * Return the upload error. See link for explanation - * https://secure.php.net/manual/en/features.file-upload.errors.php + * https://www.php.net/manual/en/features.file-upload.errors.php * * @return int One of the UPLOAD_ constants, 0 if non-existent */ diff --git a/includes/http/HttpRequestFactory.php b/includes/http/HttpRequestFactory.php index a3a14d0aec..f15534816b 100644 --- a/includes/http/HttpRequestFactory.php +++ b/includes/http/HttpRequestFactory.php @@ -46,7 +46,7 @@ class HttpRequestFactory { if ( !Http::$httpEngine ) { Http::$httpEngine = 'guzzle'; } elseif ( Http::$httpEngine == 'curl' && !function_exists( 'curl_init' ) ) { - throw new DomainException( __METHOD__ . ': curl (https://secure.php.net/curl) is not ' . + throw new DomainException( __METHOD__ . ': curl (https://www.php.net/curl) is not ' . 'installed, but Http::$httpEngine is set to "curl"' ); } @@ -64,7 +64,7 @@ class HttpRequestFactory { throw new DomainException( __METHOD__ . ': allow_url_fopen ' . 'needs to be enabled for pure PHP http requests to ' . 'work. If possible, curl should be used instead. See ' . - 'https://secure.php.net/curl.' + 'https://www.php.net/curl.' ); } return new PhpHttpRequest( $url, $options, $caller, Profiler::instance() ); diff --git a/includes/installer/i18n/en.json b/includes/installer/i18n/en.json index 66b657bbb6..485238089b 100644 --- a/includes/installer/i18n/en.json +++ b/includes/installer/i18n/en.json @@ -55,10 +55,10 @@ "config-pcre-no-utf8": "Fatal: PHP's PCRE module seems to be compiled without PCRE_UTF8 support.\nMediaWiki requires UTF-8 support to function correctly.", "config-memory-raised": "PHP's memory_limit is $1, raised to $2.", "config-memory-bad": "Warning: PHP's memory_limit is $1.\nThis is probably too low.\nThe installation may fail!", - "config-apc": "[https://secure.php.net/apc APC] is installed", - "config-apcu": "[https://secure.php.net/apcu APCu] is installed", + "config-apc": "[https://www.php.net/apc APC] is installed", + "config-apcu": "[https://www.php.net/apcu APCu] is installed", "config-wincache": "[https://www.iis.net/downloads/microsoft/wincache-extension WinCache] is installed", - "config-no-cache-apcu": "Warning: Could not find [https://secure.php.net/apcu APCu] or [https://www.iis.net/downloads/microsoft/wincache-extension WinCache].\nObject caching is not enabled.", + "config-no-cache-apcu": "Warning: Could not find [https://www.php.net/apcu APCu] or [https://www.iis.net/downloads/microsoft/wincache-extension WinCache].\nObject caching is not enabled.", "config-mod-security": "Warning: Your web server has [https://modsecurity.org/ mod_security]/mod_security2 enabled. Many common configurations of this will cause problems for MediaWiki and other software that allows users to post arbitrary content.\nIf possible, this should be disabled. Otherwise, refer to [https://modsecurity.org/documentation/ mod_security documentation] or contact your host's support if you encounter random errors.", "config-diff3-bad": "GNU diff3 text comparison utility not found. You can ignore this for now, but might run into edit conflicts more frequently.", @@ -112,11 +112,11 @@ "config-type-oracle": "Oracle", "config-type-mssql": "Microsoft SQL Server", "config-support-info": "MediaWiki supports the following database systems:\n\n$1\n\nIf you do not see the database system you are trying to use listed below, then follow the instructions linked above to enable support.", - "config-dbsupport-mysql": "* [{{int:version-db-mariadb-url}} MariaDB] is the primary target for MediaWiki and is best supported. MediaWiki also works with [{{int:version-db-mysql-url}} MySQL] and [{{int:version-db-percona-url}} Percona Server], which are MariaDB compatible. ([https://secure.php.net/manual/en/mysqli.installation.php How to compile PHP with MySQL support])", - "config-dbsupport-postgres": "* [{{int:version-db-postgres-url}} PostgreSQL] is a popular open source database system as an alternative to MySQL. ([https://secure.php.net/manual/en/pgsql.installation.php How to compile PHP with PostgreSQL support])", - "config-dbsupport-sqlite": "* [{{int:version-db-sqlite-url}} SQLite] is a lightweight database system that is very well supported. ([https://secure.php.net/manual/en/pdo.installation.php How to compile PHP with SQLite support], uses PDO)", - "config-dbsupport-oracle": "* [{{int:version-db-oracle-url}} Oracle] is a commercial enterprise database. ([https://secure.php.net/manual/en/oci8.installation.php How to compile PHP with OCI8 support])", - "config-dbsupport-mssql": "* [{{int:version-db-mssql-url}} Microsoft SQL Server] is a commercial enterprise database for Windows. ([https://secure.php.net/manual/en/sqlsrv.installation.php How to compile PHP with SQLSRV support])", + "config-dbsupport-mysql": "* [{{int:version-db-mariadb-url}} MariaDB] is the primary target for MediaWiki and is best supported. MediaWiki also works with [{{int:version-db-mysql-url}} MySQL] and [{{int:version-db-percona-url}} Percona Server], which are MariaDB compatible. ([https://www.php.net/manual/en/mysqli.installation.php How to compile PHP with MySQL support])", + "config-dbsupport-postgres": "* [{{int:version-db-postgres-url}} PostgreSQL] is a popular open source database system as an alternative to MySQL. ([https://www.php.net/manual/en/pgsql.installation.php How to compile PHP with PostgreSQL support])", + "config-dbsupport-sqlite": "* [{{int:version-db-sqlite-url}} SQLite] is a lightweight database system that is very well supported. ([https://www.php.net/manual/en/pdo.installation.php How to compile PHP with SQLite support], uses PDO)", + "config-dbsupport-oracle": "* [{{int:version-db-oracle-url}} Oracle] is a commercial enterprise database. ([https://www.php.net/manual/en/oci8.installation.php How to compile PHP with OCI8 support])", + "config-dbsupport-mssql": "* [{{int:version-db-mssql-url}} Microsoft SQL Server] is a commercial enterprise database for Windows. ([https://www.php.net/manual/en/sqlsrv.installation.php How to compile PHP with SQLSRV support])", "config-header-mysql": "MariaDB/MySQL settings", "config-header-postgres": "PostgreSQL settings", "config-header-sqlite": "SQLite settings", @@ -218,7 +218,7 @@ "config-license-help": "Many public wikis put all contributions under a [https://freedomdefined.org/Definition free license].\nThis helps to create a sense of community ownership and encourages long-term contribution.\nIt is not generally necessary for a private or corporate wiki.\n\nIf you want to be able to use text from Wikipedia, and you want Wikipedia to be able to accept text copied from your wiki, you should choose {{int:config-license-cc-by-sa}}.\n\nWikipedia previously used the GNU Free Documentation License.\nThe GFDL is a valid license, but it is difficult to understand.\nIt is also difficult to reuse content licensed under the GFDL.", "config-email-settings": "Email settings", "config-enable-email": "Enable outbound email", - "config-enable-email-help": "If you want email to work, [https://secure.php.net/manual/en/mail.configuration.php PHP's mail settings] need to be configured correctly.\nIf you do not want any email features, you can disable them here.", + "config-enable-email-help": "If you want email to work, [https://www.php.net/manual/en/mail.configuration.php PHP's mail settings] need to be configured correctly.\nIf you do not want any email features, you can disable them here.", "config-email-user": "Enable user-to-user email", "config-email-user-help": "Allow all users to send each other email if they have enabled it in their preferences.", "config-email-usertalk": "Enable user talk page notification", diff --git a/includes/libs/CSSMin.php b/includes/libs/CSSMin.php index 3129c5b21b..7a90082b18 100644 --- a/includes/libs/CSSMin.php +++ b/includes/libs/CSSMin.php @@ -407,14 +407,14 @@ class CSSMin { // FIXME: Simplify now we only support PHP 7.0.0+ // Note: PCRE doesn't support multiple capture groups with the same name by default. // - PCRE 6.7 introduced the "J" modifier (PCRE_INFO_JCHANGED for PCRE_DUPNAMES). - // https://secure.php.net/manual/en/reference.pcre.pattern.modifiers.php + // https://www.php.net/manual/en/reference.pcre.pattern.modifiers.php // However this isn't useful since it just ignores all but the first one. // Also, while the modifier was introduced in PCRE 6.7 (PHP 5.2+) it was // not exposed to public preg_* functions until PHP 5.6.0. // - PCRE 8.36 fixed this to work as expected (e.g. merge conceptually to // only return the one matched in the part that actually matched). // However MediaWiki supports 5.5.9, which has PCRE 8.32 - // Per https://secure.php.net/manual/en/pcre.installation.php: + // Per https://www.php.net/manual/en/pcre.installation.php: // - PCRE 8.32 (PHP 5.5.0) // - PCRE 8.34 (PHP 5.5.10, PHP 5.6.0) // - PCRE 8.37 (PHP 5.5.26, PHP 5.6.9, PHP 7.0.0) diff --git a/includes/libs/filebackend/FSFileBackend.php b/includes/libs/filebackend/FSFileBackend.php index f3c1f0107c..b8aa951fd5 100644 --- a/includes/libs/filebackend/FSFileBackend.php +++ b/includes/libs/filebackend/FSFileBackend.php @@ -101,7 +101,7 @@ class FSFileBackend extends FileBackendStore { public function getFeatures() { if ( $this->isWindows && version_compare( PHP_VERSION, '7.1', 'lt' ) ) { // PHP before 7.1 used 8-bit code page for filesystem paths on Windows; - // See https://secure.php.net/manual/en/migration71.windows-support.php + // See https://www.php.net/manual/en/migration71.windows-support.php return 0; } else { return FileBackend::ATTR_UNICODE_PATHS; diff --git a/includes/libs/rdbms/database/DatabasePostgres.php b/includes/libs/rdbms/database/DatabasePostgres.php index 3041a332c0..d8be62f1f4 100644 --- a/includes/libs/rdbms/database/DatabasePostgres.php +++ b/includes/libs/rdbms/database/DatabasePostgres.php @@ -922,7 +922,7 @@ __INDEXATTR__; /** * Posted by cc[plus]php[at]c2se[dot]com on 25-Mar-2009 09:12 - * to https://secure.php.net/manual/en/ref.pgsql.php + * to https://www.php.net/manual/en/ref.pgsql.php * * Parsing a postgres array can be a tricky problem, he's my * take on this, it handles multi-dimensional arrays plus diff --git a/includes/libs/rdbms/database/IDatabase.php b/includes/libs/rdbms/database/IDatabase.php index 592c9be29b..05f787cfa9 100644 --- a/includes/libs/rdbms/database/IDatabase.php +++ b/includes/libs/rdbms/database/IDatabase.php @@ -431,7 +431,7 @@ interface IDatabase { /** * Get the number of fields in a result object - * @see https://secure.php.net/mysql_num_fields + * @see https://www.php.net/mysql_num_fields * * @param mixed $res A SQL result * @return int @@ -440,7 +440,7 @@ interface IDatabase { /** * Get a field name in a result object - * @see https://secure.php.net/mysql_field_name + * @see https://www.php.net/mysql_field_name * * @param mixed $res A SQL result * @param int $n @@ -461,7 +461,7 @@ interface IDatabase { /** * Change the position of the cursor in a result object - * @see https://secure.php.net/mysql_data_seek + * @see https://www.php.net/mysql_data_seek * * @param mixed $res A SQL result * @param int $row @@ -470,7 +470,7 @@ interface IDatabase { /** * Get the last error number - * @see https://secure.php.net/mysql_errno + * @see https://www.php.net/mysql_errno * * @return int */ @@ -478,7 +478,7 @@ interface IDatabase { /** * Get a description of the last error - * @see https://secure.php.net/mysql_error + * @see https://www.php.net/mysql_error * * @return string */ @@ -486,7 +486,7 @@ interface IDatabase { /** * Get the number of rows affected by the last write query - * @see https://secure.php.net/mysql_affected_rows + * @see https://www.php.net/mysql_affected_rows * * @return int */ diff --git a/includes/media/MediaHandler.php b/includes/media/MediaHandler.php index a54da7d2aa..1a96c1da43 100644 --- a/includes/media/MediaHandler.php +++ b/includes/media/MediaHandler.php @@ -104,7 +104,7 @@ abstract class MediaHandler { * Warning, FSFile::getPropsFromPath might pass an FSFile instead of File (!) * @param string $path The filename * @return array|bool Follow the format of PHP getimagesize() internal function. - * See https://secure.php.net/getimagesize. MediaWiki will only ever use the + * See https://www.php.net/getimagesize. MediaWiki will only ever use the * first two array keys (the width and height), and the 'bits' associative * key. All other array keys are ignored. Returning a 'bits' key is optional * as not all formats have a notion of "bitdepth". Returns false on failure. diff --git a/includes/media/XCFHandler.php b/includes/media/XCFHandler.php index 33f33bd527..e47cc371aa 100644 --- a/includes/media/XCFHandler.php +++ b/includes/media/XCFHandler.php @@ -67,7 +67,7 @@ class XCFHandler extends BitmapHandler { } # Forge a return array containing metadata information just like getimagesize() - # See PHP documentation at: https://secure.php.net/getimagesize + # See PHP documentation at: https://www.php.net/getimagesize return [ 0 => $header['width'], 1 => $header['height'], diff --git a/includes/shell/Command.php b/includes/shell/Command.php index 1936d000fc..1dab7ebeb3 100644 --- a/includes/shell/Command.php +++ b/includes/shell/Command.php @@ -429,7 +429,7 @@ class Command { } // clear get_last_error without actually raising an error - // from https://secure.php.net/manual/en/function.error-get-last.php#113518 + // from https://www.php.net/manual/en/function.error-get-last.php#113518 // TODO replace with clear_last_error when requirements are bumped to PHP7 set_error_handler( function () { }, 0 ); diff --git a/includes/specials/SpecialBlock.php b/includes/specials/SpecialBlock.php index 9e218b67ed..7d86663dfd 100644 --- a/includes/specials/SpecialBlock.php +++ b/includes/specials/SpecialBlock.php @@ -1075,7 +1075,7 @@ class SpecialBlock extends FormSpecialPage { * * @todo strtotime() only accepts English strings. This means the expiry input * can only be specified in English. - * @see https://secure.php.net/manual/en/function.strtotime.php + * @see https://www.php.net/manual/en/function.strtotime.php * * @param string $expiry Whatever was typed into the form * @return string|bool Timestamp or 'infinity' or false on error. diff --git a/includes/utils/UIDGenerator.php b/includes/utils/UIDGenerator.php index 65b50e2d21..fea5404c84 100644 --- a/includes/utils/UIDGenerator.php +++ b/includes/utils/UIDGenerator.php @@ -574,7 +574,7 @@ class UIDGenerator { $start = microtime( true ); do { $ct = time(); - // https://secure.php.net/manual/en/language.operators.comparison.php + // https://www.php.net/manual/en/language.operators.comparison.php if ( $ct >= $time ) { // current time is higher than or equal to than $time return $ct; diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json index 72a44136da..a22fac3d9f 100644 --- a/languages/i18n/qqq.json +++ b/languages/i18n/qqq.json @@ -4179,15 +4179,15 @@ "mediastatistics-header-3d": "Header on [[Special:MediaStatistics]] for file types that are in the 3D category. Includes STL files.", "mediastatistics-header-total": "Header on [[Special:MediaStatistics]] for a summary of all file types.", "json-warn-trailing-comma": "A warning message notifying that JSON text was automatically corrected by removing erroneous commas.\n\nParameters:\n* $1 - number of commas that were removed\n{{Related|Json-error}}", - "json-error-unknown": "User error message when there’s an unknown error.\n\nThis error is shown if we received an unexpected value from PHP. See https://secure.php.net/manual/en/function.json-last-error.php\n\nParameters:\n* $1 - integer error code\n{{Related|Json-error}}", - "json-error-depth": "User error message when the maximum stack depth is exceeded.\nSee https://secure.php.net/manual/en/function.json-last-error.php\n{{Related|Json-error}}", - "json-error-state-mismatch": "User error message when underflow or the modes mismatch.\n\n'''Underflow''': A data-processing error arising when the absolute value of a computed quantity is smaller than the limits of precision of the computing device, retaining at least one significant digit.\n\nSee https://secure.php.net/manual/en/function.json-last-error.php\n{{Related|Json-error}}", - "json-error-ctrl-char": "User error message when an unexpected control character has been found.\nSee https://secure.php.net/manual/en/function.json-last-error.php\n{{Related|Json-error}}", - "json-error-syntax": "User error message when there is a syntax error; a malformed JSON.\nSee https://secure.php.net/manual/en/function.json-last-error.php\n{{Related|Json-error}}\n{{Identical|Syntax error}}", - "json-error-utf8": "User error message when there are malformed UTF-8 characters, possibly incorrectly encoded.\nSee https://secure.php.net/manual/en/function.json-last-error.php\n{{Related|Json-error}}", - "json-error-recursion": "PHP JSON encoding/decoding error. See https://secure.php.net/manual/en/function.json-last-error.php\n{{Related|Json-error}}", - "json-error-inf-or-nan": "PHP JSON encoding/decoding error. See https://secure.php.net/manual/en/function.json-last-error.php\n{{Related|Json-error}}", - "json-error-unsupported-type": "PHP JSON encoding/decoding error. See https://secure.php.net/manual/en/function.json-last-error.php\n{{Related|Json-error}}", + "json-error-unknown": "User error message when there’s an unknown error.\n\nThis error is shown if we received an unexpected value from PHP. See https://www.php.net/manual/en/function.json-last-error.php\n\nParameters:\n* $1 - integer error code\n{{Related|Json-error}}", + "json-error-depth": "User error message when the maximum stack depth is exceeded.\nSee https://www.php.net/manual/en/function.json-last-error.php\n{{Related|Json-error}}", + "json-error-state-mismatch": "User error message when underflow or the modes mismatch.\n\n'''Underflow''': A data-processing error arising when the absolute value of a computed quantity is smaller than the limits of precision of the computing device, retaining at least one significant digit.\n\nSee https://www.php.net/manual/en/function.json-last-error.php\n{{Related|Json-error}}", + "json-error-ctrl-char": "User error message when an unexpected control character has been found.\nSee https://www.php.net/manual/en/function.json-last-error.php\n{{Related|Json-error}}", + "json-error-syntax": "User error message when there is a syntax error; a malformed JSON.\nSee https://www.php.net/manual/en/function.json-last-error.php\n{{Related|Json-error}}\n{{Identical|Syntax error}}", + "json-error-utf8": "User error message when there are malformed UTF-8 characters, possibly incorrectly encoded.\nSee https://www.php.net/manual/en/function.json-last-error.php\n{{Related|Json-error}}", + "json-error-recursion": "PHP JSON encoding/decoding error. See https://www.php.net/manual/en/function.json-last-error.php\n{{Related|Json-error}}", + "json-error-inf-or-nan": "PHP JSON encoding/decoding error. See https://www.php.net/manual/en/function.json-last-error.php\n{{Related|Json-error}}", + "json-error-unsupported-type": "PHP JSON encoding/decoding error. See https://www.php.net/manual/en/function.json-last-error.php\n{{Related|Json-error}}", "headline-anchor-title": "Title tooltip for the section anchor symbol, which is a link to the current section. Can be interpreted both as a noun (\"this is a link\") or as a verb (\"use this to link\").", "special-characters-group-latin": "This is the name of a script, or alphabet, not a language.", "special-characters-group-latinextended": "The name of the Latin Extended character set.", diff --git a/maintenance/dev/includes/router.php b/maintenance/dev/includes/router.php index 1f34b5aae5..d767df0d8b 100644 --- a/maintenance/dev/includes/router.php +++ b/maintenance/dev/includes/router.php @@ -1,7 +1,7 @@ fatalError( "You must enable zlib support in PHP to compress old revisions!\n" . - "Please see https://secure.php.net/manual/en/ref.zlib.php\n" ); + "Please see https://www.php.net/manual/en/ref.zlib.php\n" ); } $type = $this->getOption( 'type', 'concat' ); diff --git a/tests/phpunit/includes/http/HttpTest.php b/tests/phpunit/includes/http/HttpTest.php index fedfac6aa1..eee4296281 100644 --- a/tests/phpunit/includes/http/HttpTest.php +++ b/tests/phpunit/includes/http/HttpTest.php @@ -202,7 +202,7 @@ class HttpTest extends MediaWikiTestCase { /** * Constant values are from PHP 5.3.28 using cURL 7.24.0 - * @see https://secure.php.net/manual/en/curl.constants.php + * @see https://www.php.net/manual/en/curl.constants.php * * All constant values are present so that developers don’t need to remember * to add them if added at a later date. The commented out constants were @@ -515,7 +515,7 @@ class MWHttpRequestTester extends MWHttpRequest { if ( !Http::$httpEngine ) { Http::$httpEngine = 'guzzle'; } elseif ( Http::$httpEngine == 'curl' && !function_exists( 'curl_init' ) ) { - throw new DomainException( __METHOD__ . ': curl (https://secure.php.net/curl) is not ' . + throw new DomainException( __METHOD__ . ': curl (https://www.php.net/curl) is not ' . 'installed, but Http::$httpEngine is set to "curl"' ); } @@ -528,7 +528,7 @@ class MWHttpRequestTester extends MWHttpRequest { if ( !wfIniGetBool( 'allow_url_fopen' ) ) { throw new DomainException( __METHOD__ . ': allow_url_fopen needs to be enabled for pure PHP HTTP requests to work. ' - . 'If possible, curl should be used instead. See https://secure.php.net/curl.' ); + . 'If possible, curl should be used instead. See https://www.php.net/curl.' ); } return new PhpHttpRequestTester( $url, $options, $caller ); diff --git a/tests/phpunit/suites/ParserTestTopLevelSuite.php b/tests/phpunit/suites/ParserTestTopLevelSuite.php index 77461c5af2..28547d1f84 100644 --- a/tests/phpunit/suites/ParserTestTopLevelSuite.php +++ b/tests/phpunit/suites/ParserTestTopLevelSuite.php @@ -113,7 +113,7 @@ class ParserTestTopLevelSuite extends PHPUnit_Framework_TestSuite { $testsName = $extensionName . '__' . basename( $fileName, '.txt' ); $parserTestClassName = ucfirst( $testsName ); - // Official spec for class names: https://secure.php.net/manual/en/language.oop5.basic.php + // Official spec for class names: https://www.php.net/manual/en/language.oop5.basic.php // Prepend 'ParserTest_' to be paranoid about it not starting with a number $parserTestClassName = 'ParserTest_' . preg_replace( '/[^a-zA-Z0-9_\x7f-\xff]/', '_', $parserTestClassName ); -- 2.20.1