From a44bda729fc7e50263de61a9c9889daba3cd7f2b Mon Sep 17 00:00:00 2001 From: Jennifer Hodgdon Date: Thu, 12 Sep 2013 07:52:52 -0700 Subject: Issue #692366 by mariacha1, hosef, Albert Volkman, xjm, underq, kid_icarus, willmoy, bradweikel: Replace US-centric php.net URLs with language-neutral URLs --- includes/bootstrap.inc | 8 ++++---- includes/common.inc | 8 ++++---- includes/database/database.inc | 6 +++--- includes/errors.inc | 2 +- includes/file.inc | 10 +++++----- includes/stream_wrappers.inc | 40 +++++++++++++++++++------------------- modules/system/system.api.php | 2 +- modules/system/system.mail.inc | 2 +- sites/default/default.settings.php | 4 ++-- 9 files changed, 41 insertions(+), 41 deletions(-) diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 4bed48666..e31322c0c 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -244,7 +244,7 @@ define('REGISTRY_WRITE_LOOKUP_CACHE', 2); /** * Regular expression to match PHP function names. * - * @see http://php.net/manual/en/language.functions.php + * @see http://php.net/manual/language.functions.php */ define('DRUPAL_PHP_FUNCTION_PATTERN', '[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*'); @@ -278,7 +278,7 @@ define('DRUPAL_PHP_FUNCTION_PATTERN', '[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*' * error, and $var will be populated with the contents of $object['foo'], but * that data will be passed by value, not reference. For more information on * the PHP limitation, see the note in the official PHP documentation at· - * http://php.net/manual/en/arrayaccess.offsetget.php on + * http://php.net/manual/arrayaccess.offsetget.php on * ArrayAccess::offsetGet(). * * By default, the class accounts for caches where calling functions might @@ -3253,8 +3253,8 @@ function registry_update() { * However, the above line of code does not work, because PHP only allows static * variables to be initializied by literal values, and does not allow static * variables to be assigned to references. - * - http://php.net/manual/en/language.variables.scope.php#language.variables.scope.static - * - http://php.net/manual/en/language.variables.scope.php#language.variables.scope.references + * - http://php.net/manual/language.variables.scope.php#language.variables.scope.static + * - http://php.net/manual/language.variables.scope.php#language.variables.scope.references * The example below shows the syntax needed to work around both limitations. * For benchmarks and more information, see http://drupal.org/node/619666. * diff --git a/includes/common.inc b/includes/common.inc index 262e1c57b..de3189701 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -1134,7 +1134,7 @@ function _fix_gpc_magic(&$item) { * @param $key * The key for the item within $_FILES. * - * @see http://php.net/manual/en/features.file-upload.php#42280 + * @see http://php.net/manual/features.file-upload.php#42280 */ function _fix_gpc_magic_files(&$item, $key) { if ($key != 'tmp_name') { @@ -1950,7 +1950,7 @@ function format_interval($interval, $granularity = 2, $langcode = NULL) { * get interpreted as date format characters. * @param $timezone * (optional) Time zone identifier, as described at - * http://php.net/manual/en/timezones.php Defaults to the time zone used to + * http://php.net/manual/timezones.php Defaults to the time zone used to * display the page. * @param $langcode * (optional) Language code to translate to. Defaults to the language used to @@ -3719,7 +3719,7 @@ function drupal_load_stylesheet_content($contents, $optimize = FALSE) { // Remove certain whitespace. // There are different conditions for removing leading and trailing // whitespace. - // @see http://php.net/manual/en/regexp.reference.subpatterns.php + // @see http://php.net/manual/regexp.reference.subpatterns.php $contents = preg_replace('< # Strip leading and trailing whitespace. \s*([@{};,])\s* @@ -5151,7 +5151,7 @@ function _drupal_bootstrap_full() { * client without gzip support. * * Page compression requires the PHP zlib extension - * (http://php.net/manual/en/ref.zlib.php). + * (http://php.net/manual/ref.zlib.php). * * @see drupal_page_header() */ diff --git a/includes/database/database.inc b/includes/database/database.inc index 339c9b03e..604dd4c7a 100644 --- a/includes/database/database.inc +++ b/includes/database/database.inc @@ -179,7 +179,7 @@ * concrete implementation of it to support special handling required by that * database. * - * @see http://php.net/manual/en/book.pdo.php + * @see http://php.net/manual/book.pdo.php */ abstract class DatabaseConnection extends PDO { @@ -1986,7 +1986,7 @@ interface DatabaseStatementInterface extends Traversable { /** * Sets the default fetch mode for this statement. * - * See http://php.net/manual/en/pdo.constants.php for the definition of the + * See http://php.net/manual/pdo.constants.php for the definition of the * constants used. * * @param $mode @@ -2005,7 +2005,7 @@ interface DatabaseStatementInterface extends Traversable { /** * Fetches the next row from a result set. * - * See http://php.net/manual/en/pdo.constants.php for the definition of the + * See http://php.net/manual/pdo.constants.php for the definition of the * constants used. * * @param $mode diff --git a/includes/errors.inc b/includes/errors.inc index fcf9ca85c..a9b7b5bde 100644 --- a/includes/errors.inc +++ b/includes/errors.inc @@ -9,7 +9,7 @@ * Maps PHP error constants to watchdog severity levels. * * The error constants are documented at - * http://php.net/manual/en/errorfunc.constants.php + * http://php.net/manual/errorfunc.constants.php * * @ingroup logging_severity_levels */ diff --git a/includes/file.inc b/includes/file.inc index 06657cfbe..44e342233 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -1108,7 +1108,7 @@ function file_munge_filename($filename, $extensions, $alerts = TRUE) { // Allow potentially insecure uploads for very savvy users and admin if (!variable_get('allow_insecure_uploads', 0)) { - // Remove any null bytes. See http://php.net/manual/en/security.filesystem.nullbytes.php + // Remove any null bytes. See http://php.net/manual/security.filesystem.nullbytes.php $filename = str_replace(chr(0), '', $filename); $whitelist = array_unique(explode(' ', trim($extensions))); @@ -1414,7 +1414,7 @@ function file_save_upload($source, $validators = array(), $destination = FALSE, // Check for file upload errors and return FALSE if a lower level system // error occurred. For a complete list of errors: - // See http://php.net/manual/en/features.file-upload.errors.php. + // See http://php.net/manual/features.file-upload.errors.php. switch ($_FILES['files']['error'][$source]) { case UPLOAD_ERR_INI_SIZE: case UPLOAD_ERR_FORM_SIZE: @@ -2177,7 +2177,7 @@ function drupal_chmod($uri, $mode = NULL) { * @param $uri * A URI or pathname. * @param $context - * Refer to http://php.net/manual/en/ref.stream.php + * Refer to http://php.net/manual/ref.stream.php * * @return * Boolean TRUE on success, or FALSE on failure. @@ -2310,7 +2310,7 @@ function drupal_basename($uri, $suffix = NULL) { * @param $recursive * Default to FALSE. * @param $context - * Refer to http://php.net/manual/en/ref.stream.php + * Refer to http://php.net/manual/ref.stream.php * * @return * Boolean TRUE on success, or FALSE on failure. @@ -2341,7 +2341,7 @@ function drupal_mkdir($uri, $mode = NULL, $recursive = FALSE, $context = NULL) { * @param $uri * A URI or pathname. * @param $context - * Refer to http://php.net/manual/en/ref.stream.php + * Refer to http://php.net/manual/ref.stream.php * * @return * Boolean TRUE on success, or FALSE on failure. diff --git a/includes/stream_wrappers.inc b/includes/stream_wrappers.inc index fa401c6b7..305073982 100644 --- a/includes/stream_wrappers.inc +++ b/includes/stream_wrappers.inc @@ -93,7 +93,7 @@ define('STREAM_WRAPPERS_LOCAL_NORMAL', STREAM_WRAPPERS_LOCAL | STREAM_WRAPPERS_N /** * Generic PHP stream wrapper interface. * - * @see http://www.php.net/manual/en/class.streamwrapper.php + * @see http://www.php.net/manual/class.streamwrapper.php */ interface StreamWrapperInterface { public function stream_open($uri, $mode, $options, &$opened_url); @@ -401,7 +401,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface * @return * Returns TRUE if file was opened successfully. * - * @see http://php.net/manual/en/streamwrapper.stream-open.php + * @see http://php.net/manual/streamwrapper.stream-open.php */ public function stream_open($uri, $mode, $options, &$opened_path) { $this->uri = $uri; @@ -429,7 +429,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface * @return * Always returns TRUE at the present time. * - * @see http://php.net/manual/en/streamwrapper.stream-lock.php + * @see http://php.net/manual/streamwrapper.stream-lock.php */ public function stream_lock($operation) { if (in_array($operation, array(LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB))) { @@ -448,7 +448,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface * @return * The string that was read, or FALSE in case of an error. * - * @see http://php.net/manual/en/streamwrapper.stream-read.php + * @see http://php.net/manual/streamwrapper.stream-read.php */ public function stream_read($count) { return fread($this->handle, $count); @@ -463,7 +463,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface * @return * The number of bytes written (integer). * - * @see http://php.net/manual/en/streamwrapper.stream-write.php + * @see http://php.net/manual/streamwrapper.stream-write.php */ public function stream_write($data) { return fwrite($this->handle, $data); @@ -475,7 +475,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface * @return * TRUE if end-of-file has been reached. * - * @see http://php.net/manual/en/streamwrapper.stream-eof.php + * @see http://php.net/manual/streamwrapper.stream-eof.php */ public function stream_eof() { return feof($this->handle); @@ -492,7 +492,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface * @return * TRUE on success. * - * @see http://php.net/manual/en/streamwrapper.stream-seek.php + * @see http://php.net/manual/streamwrapper.stream-seek.php */ public function stream_seek($offset, $whence) { // fseek returns 0 on success and -1 on a failure. @@ -506,7 +506,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface * @return * TRUE if data was successfully stored (or there was no data to store). * - * @see http://php.net/manual/en/streamwrapper.stream-flush.php + * @see http://php.net/manual/streamwrapper.stream-flush.php */ public function stream_flush() { return fflush($this->handle); @@ -518,7 +518,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface * @return * The current offset in bytes from the beginning of file. * - * @see http://php.net/manual/en/streamwrapper.stream-tell.php + * @see http://php.net/manual/streamwrapper.stream-tell.php */ public function stream_tell() { return ftell($this->handle); @@ -531,7 +531,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface * An array with file status, or FALSE in case of an error - see fstat() * for a description of this array. * - * @see http://php.net/manual/en/streamwrapper.stream-stat.php + * @see http://php.net/manual/streamwrapper.stream-stat.php */ public function stream_stat() { return fstat($this->handle); @@ -543,7 +543,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface * @return * TRUE if stream was successfully closed. * - * @see http://php.net/manual/en/streamwrapper.stream-close.php + * @see http://php.net/manual/streamwrapper.stream-close.php */ public function stream_close() { return fclose($this->handle); @@ -558,7 +558,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface * @return * TRUE if resource was successfully deleted. * - * @see http://php.net/manual/en/streamwrapper.unlink.php + * @see http://php.net/manual/streamwrapper.unlink.php */ public function unlink($uri) { $this->uri = $uri; @@ -576,7 +576,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface * @return * TRUE if file was successfully renamed. * - * @see http://php.net/manual/en/streamwrapper.rename.php + * @see http://php.net/manual/streamwrapper.rename.php */ public function rename($from_uri, $to_uri) { return rename($this->getLocalPath($from_uri), $this->getLocalPath($to_uri)); @@ -622,7 +622,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface * @return * TRUE if directory was successfully created. * - * @see http://php.net/manual/en/streamwrapper.mkdir.php + * @see http://php.net/manual/streamwrapper.mkdir.php */ public function mkdir($uri, $mode, $options) { $this->uri = $uri; @@ -654,7 +654,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface * @return * TRUE if directory was successfully removed. * - * @see http://php.net/manual/en/streamwrapper.rmdir.php + * @see http://php.net/manual/streamwrapper.rmdir.php */ public function rmdir($uri, $options) { $this->uri = $uri; @@ -678,7 +678,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface * An array with file status, or FALSE in case of an error - see fstat() * for a description of this array. * - * @see http://php.net/manual/en/streamwrapper.url-stat.php + * @see http://php.net/manual/streamwrapper.url-stat.php */ public function url_stat($uri, $flags) { $this->uri = $uri; @@ -704,7 +704,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface * @return * TRUE on success. * - * @see http://php.net/manual/en/streamwrapper.dir-opendir.php + * @see http://php.net/manual/streamwrapper.dir-opendir.php */ public function dir_opendir($uri, $options) { $this->uri = $uri; @@ -719,7 +719,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface * @return * The next filename, or FALSE if there are no more files in the directory. * - * @see http://php.net/manual/en/streamwrapper.dir-readdir.php + * @see http://php.net/manual/streamwrapper.dir-readdir.php */ public function dir_readdir() { return readdir($this->handle); @@ -731,7 +731,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface * @return * TRUE on success. * - * @see http://php.net/manual/en/streamwrapper.dir-rewinddir.php + * @see http://php.net/manual/streamwrapper.dir-rewinddir.php */ public function dir_rewinddir() { rewinddir($this->handle); @@ -747,7 +747,7 @@ abstract class DrupalLocalStreamWrapper implements DrupalStreamWrapperInterface * @return * TRUE on success. * - * @see http://php.net/manual/en/streamwrapper.dir-closedir.php + * @see http://php.net/manual/streamwrapper.dir-closedir.php */ public function dir_closedir() { closedir($this->handle); diff --git a/modules/system/system.api.php b/modules/system/system.api.php index 05fa9bb17..276dbca18 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -4096,7 +4096,7 @@ function hook_date_format_types_alter(&$types) { * declared in an implementation of hook_date_format_types(). * - 'format': A PHP date format string to use when formatting dates. It * can contain any of the formatting options described at - * http://php.net/manual/en/function.date.php + * http://php.net/manual/function.date.php * - 'locales': (optional) An array of 2 and 5 character locale codes, * defining which locales this format applies to (for example, 'en', * 'en-us', etc.). If your date format is not language-specific, leave this diff --git a/modules/system/system.mail.inc b/modules/system/system.mail.inc index 4e7544006..443e57400 100644 --- a/modules/system/system.mail.inc +++ b/modules/system/system.mail.inc @@ -31,7 +31,7 @@ class DefaultMailSystem implements MailSystemInterface { /** * Send an e-mail message, using Drupal variables and default settings. * - * @see http://php.net/manual/en/function.mail.php + * @see http://php.net/manual/function.mail.php * @see drupal_mail() * * @param $message diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php index 40f552e1d..580cc3887 100644 --- a/sites/default/default.settings.php +++ b/sites/default/default.settings.php @@ -271,7 +271,7 @@ $drupal_hash_salt = ''; * * To see what PHP settings are possible, including whether they can be set at * runtime (by using ini_set()), read the PHP documentation: - * http://www.php.net/manual/en/ini.list.php + * http://www.php.net/manual/ini.list.php * See drupal_environment_initialize() in includes/bootstrap.inc for required * runtime settings and the .htaccess file for non-runtime settings. Settings * defined there should not be duplicated here so as to avoid conflict issues. @@ -307,7 +307,7 @@ ini_set('session.cookie_lifetime', 2000000); * output filter may not have sufficient memory to process it. If you * experience this issue, you may wish to uncomment the following two lines * and increase the limits of these variables. For more information, see - * http://php.net/manual/en/pcre.configuration.php. + * http://php.net/manual/pcre.configuration.php. */ # ini_set('pcre.backtrack_limit', 200000); # ini_set('pcre.recursion_limit', 200000); -- cgit v1.2.3