From 1132170c93590b19e4e34e348a6316f7b292b25f Mon Sep 17 00:00:00 2001 From: Javier Spagnoletti Date: Thu, 31 Aug 2023 07:13:01 -0300 Subject: [PATCH] Replace `` nodes with `` for constants --- language-snippets.ent | 2 +- .../datetime/datetimezone/listidentifiers.xml | 2 +- reference/intl/intlchar/enumchartypes.xml | 2 +- reference/intl/intlchar/getblockcode.xml | 2 +- reference/intl/intlchar/getpropertyenum.xml | 2 +- reference/pdo/pdo/getattribute.xml | 18 ++++---- reference/pdo/pdo/prepare.xml | 4 +- reference/pdo/pdo/query.xml | 2 +- reference/pdo/pdostatement/bindcolumn.xml | 2 +- reference/pdo/pdostatement/bindparam.xml | 2 +- reference/pdo/pdostatement/bindvalue.xml | 2 +- reference/pdo/pdostatement/fetch.xml | 44 +++++++++---------- reference/pdo/pdostatement/getattribute.xml | 2 +- reference/pdo/pdostatement/getcolumnmeta.xml | 2 +- reference/pdo/pdostatement/setattribute.xml | 2 +- reference/phar/Phar/canCompress.xml | 2 +- reference/phar/Phar/compress.xml | 6 +-- reference/phar/Phar/compressFiles.xml | 4 +- reference/phar/Phar/convertToData.xml | 10 ++--- reference/phar/Phar/convertToExecutable.xml | 10 ++--- .../phar/Phar/getSupportedCompression.xml | 4 +- reference/phar/Phar/isCompressed.xml | 2 +- reference/phar/Phar/isFileFormat.xml | 4 +- reference/phar/Phar/setSignatureAlgorithm.xml | 12 ++--- reference/phar/PharData/compress.xml | 6 +-- reference/phar/PharData/compressFiles.xml | 4 +- reference/phar/PharData/convertToData.xml | 10 ++--- .../phar/PharData/convertToExecutable.xml | 10 ++--- .../phar/PharData/setSignatureAlgorithm.xml | 12 ++--- 29 files changed, 93 insertions(+), 93 deletions(-) diff --git a/language-snippets.ent b/language-snippets.ent index c678ce86b01c..529133edc4e8 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -1085,7 +1085,7 @@ Passing untrusted data to this parameter is insecure, unles Returns &null; when the length of locale exceeds INTL_MAX_LOCALE_LEN.'> -The Unicode property to lookup (see the IntlChar::PROPERTY_* constants).'> +The Unicode property to lookup (see the IntlChar::PROPERTY_* constants).'> diff --git a/reference/datetime/datetimezone/listidentifiers.xml b/reference/datetime/datetimezone/listidentifiers.xml index 05133236749a..54d75e82d4bd 100644 --- a/reference/datetime/datetimezone/listidentifiers.xml +++ b/reference/datetime/datetimezone/listidentifiers.xml @@ -69,7 +69,7 @@ Returns the array of timezone identifiers. Only non-outdated items are returned. To get all, including outdated timezone identifiers, use the - DateTimeZone::ALL_WITH_BC as value for + DateTimeZone::ALL_WITH_BC as value for timezoneGroup. diff --git a/reference/intl/intlchar/enumchartypes.xml b/reference/intl/intlchar/enumchartypes.xml index 241c13fdabb4..c7ad7f00e624 100644 --- a/reference/intl/intlchar/enumchartypes.xml +++ b/reference/intl/intlchar/enumchartypes.xml @@ -35,7 +35,7 @@ int $start - The starting code point of the range int $end - The ending code point of the range - int $name - The category type (one of the IntlChar::CHAR_CATEGORY_* constants) + int $name - The category type (one of the IntlChar::CHAR_CATEGORY_* constants) diff --git a/reference/intl/intlchar/getblockcode.xml b/reference/intl/intlchar/getblockcode.xml index 308590a43578..d664e5b8ed49 100644 --- a/reference/intl/intlchar/getblockcode.xml +++ b/reference/intl/intlchar/getblockcode.xml @@ -33,7 +33,7 @@ &reftitle.returnvalues; Returns the block value for codepoint. - See the IntlChar::BLOCK_CODE_* constants for possible return values. Returns &null; on failure. + See the IntlChar::BLOCK_CODE_* constants for possible return values. Returns &null; on failure. diff --git a/reference/intl/intlchar/getpropertyenum.xml b/reference/intl/intlchar/getpropertyenum.xml index 1283cfdf06a3..f735a1252581 100644 --- a/reference/intl/intlchar/getpropertyenum.xml +++ b/reference/intl/intlchar/getpropertyenum.xml @@ -42,7 +42,7 @@ &reftitle.returnvalues; - Returns an IntlChar::PROPERTY_ constant value, + Returns an IntlChar::PROPERTY_* constant value, or IntlChar::PROPERTY_INVALID_CODE if the given name does not match any property. diff --git a/reference/pdo/pdo/getattribute.xml b/reference/pdo/pdo/getattribute.xml index 02acc2a65c38..6ab7efbc7da0 100644 --- a/reference/pdo/pdo/getattribute.xml +++ b/reference/pdo/pdo/getattribute.xml @@ -35,17 +35,17 @@ attribute - One of the PDO::ATTR_* constants. The generic attributes that + One of the PDO::ATTR_* constants. The generic attributes that apply to database connections are as follows: - PDO::ATTR_CASE - PDO::ATTR_DEFAULT_FETCH_MODE - PDO::ATTR_DRIVER_NAME - PDO::ATTR_ERRMODE - PDO::ATTR_ORACLE_NULLS - PDO::ATTR_PERSISTENT - PDO::ATTR_STATEMENT_CLASS - PDO::ATTR_STRINGIFY_FETCHES + PDO::ATTR_CASE + PDO::ATTR_DEFAULT_FETCH_MODE + PDO::ATTR_DRIVER_NAME + PDO::ATTR_ERRMODE + PDO::ATTR_ORACLE_NULLS + PDO::ATTR_PERSISTENT + PDO::ATTR_STATEMENT_CLASS + PDO::ATTR_STRINGIFY_FETCHES diff --git a/reference/pdo/pdo/prepare.xml b/reference/pdo/pdo/prepare.xml index aadd5ff889e9..406bc54e51cd 100644 --- a/reference/pdo/pdo/prepare.xml +++ b/reference/pdo/pdo/prepare.xml @@ -100,8 +100,8 @@ This array holds one or more key=>value pairs to set attribute values for the PDOStatement object that this method returns. You would most commonly use this to set the - PDO::ATTR_CURSOR value to - PDO::CURSOR_SCROLL to request a scrollable cursor. + PDO::ATTR_CURSOR value to + PDO::CURSOR_SCROLL to request a scrollable cursor. Some drivers have driver-specific options that may be set at prepare-time. diff --git a/reference/pdo/pdo/query.xml b/reference/pdo/pdo/query.xml index df0d6a7e31a0..d42becbcf3d9 100644 --- a/reference/pdo/pdo/query.xml +++ b/reference/pdo/pdo/query.xml @@ -88,7 +88,7 @@ The default fetch mode for the returned PDOStatement. - It must be one of the PDO::FETCH_* constants. + It must be one of the PDO::FETCH_* constants. If this argument is passed to the function, the remaining arguments diff --git a/reference/pdo/pdostatement/bindcolumn.xml b/reference/pdo/pdostatement/bindcolumn.xml index d9c6b3323983..b4acf7ad11dc 100644 --- a/reference/pdo/pdostatement/bindcolumn.xml +++ b/reference/pdo/pdostatement/bindcolumn.xml @@ -66,7 +66,7 @@ type - Data type of the parameter, specified by the PDO::PARAM_* + Data type of the parameter, specified by the PDO::PARAM_* constants. diff --git a/reference/pdo/pdostatement/bindparam.xml b/reference/pdo/pdostatement/bindparam.xml index 4eccba223a9f..7eacbd042652 100644 --- a/reference/pdo/pdostatement/bindparam.xml +++ b/reference/pdo/pdostatement/bindparam.xml @@ -63,7 +63,7 @@ type - Explicit data type for the parameter using the PDO::PARAM_* + Explicit data type for the parameter using the PDO::PARAM_* constants. To return an INOUT parameter from a stored procedure, use the bitwise OR operator to set the PDO::PARAM_INPUT_OUTPUT bits diff --git a/reference/pdo/pdostatement/bindvalue.xml b/reference/pdo/pdostatement/bindvalue.xml index c00530288b4f..f032b5143c84 100644 --- a/reference/pdo/pdostatement/bindvalue.xml +++ b/reference/pdo/pdostatement/bindvalue.xml @@ -49,7 +49,7 @@ type - Explicit data type for the parameter using the PDO::PARAM_* + Explicit data type for the parameter using the PDO::PARAM_* constants. diff --git a/reference/pdo/pdostatement/fetch.xml b/reference/pdo/pdostatement/fetch.xml index f56ee88eab51..b1448079d58c 100644 --- a/reference/pdo/pdostatement/fetch.xml +++ b/reference/pdo/pdostatement/fetch.xml @@ -32,26 +32,26 @@ Controls how the next row will be returned to the caller. This value - must be one of the PDO::FETCH_* constants, - defaulting to value of PDO::ATTR_DEFAULT_FETCH_MODE - (which defaults to PDO::FETCH_BOTH). + must be one of the PDO::FETCH_* constants, + defaulting to value of PDO::ATTR_DEFAULT_FETCH_MODE + (which defaults to PDO::FETCH_BOTH). - PDO::FETCH_ASSOC: returns an array indexed by column + PDO::FETCH_ASSOC: returns an array indexed by column name as returned in your result set - PDO::FETCH_BOTH (default): returns an array indexed by + PDO::FETCH_BOTH (default): returns an array indexed by both column name and 0-indexed column number as returned in your result set - PDO::FETCH_BOUND: returns &true; and assigns the + PDO::FETCH_BOUND: returns &true; and assigns the values of the columns in your result set to the PHP variables to which they were bound with the PDOStatement::bindColumn method @@ -59,7 +59,7 @@ - PDO::FETCH_CLASS: returns a new instance of the + PDO::FETCH_CLASS: returns a new instance of the requested class. The object is initialized by mapping the columns of the result set to properties in the class. This occurs before the constructor is called, allowing properties to be populated regardless @@ -76,23 +76,23 @@ - PDO::FETCH_INTO: updates an existing instance + PDO::FETCH_INTO: updates an existing instance of the requested class, mapping the columns of the result set to named properties in the class - PDO::FETCH_LAZY: combines - PDO::FETCH_BOTH and PDO::FETCH_OBJ, + PDO::FETCH_LAZY: combines + PDO::FETCH_BOTH and PDO::FETCH_OBJ, and returns a PDORow object which creates the object property names as they are accessed. - PDO::FETCH_NAMED: returns an array with the same - form as PDO::FETCH_ASSOC, except that if there are + PDO::FETCH_NAMED: returns an array with the same + form as PDO::FETCH_ASSOC, except that if there are multiple columns with the same name, the value referred to by that key will be an array of all the values in the row that had that column name @@ -100,21 +100,21 @@ - PDO::FETCH_NUM: returns an array indexed by column + PDO::FETCH_NUM: returns an array indexed by column number as returned in your result set, starting at column 0 - PDO::FETCH_OBJ: returns an anonymous object with + PDO::FETCH_OBJ: returns an anonymous object with property names that correspond to the column names returned in your result set - PDO::FETCH_PROPS_LATE: when used with - PDO::FETCH_CLASS, the constructor of the class is + PDO::FETCH_PROPS_LATE: when used with + PDO::FETCH_CLASS, the constructor of the class is called before the properties are assigned from the respective column values. @@ -129,11 +129,11 @@ For a PDOStatement object representing a scrollable cursor, this value determines which row will be returned to the caller. This value - must be one of the PDO::FETCH_ORI_* constants, - defaulting to PDO::FETCH_ORI_NEXT. To request a + must be one of the PDO::FETCH_ORI_* constants, + defaulting to PDO::FETCH_ORI_NEXT. To request a scrollable cursor for your PDOStatement object, you must set the - PDO::ATTR_CURSOR attribute to - PDO::CURSOR_SCROLL when you prepare the SQL + PDO::ATTR_CURSOR attribute to + PDO::CURSOR_SCROLL when you prepare the SQL statement with PDO::prepare. @@ -144,13 +144,13 @@ For a PDOStatement object representing a scrollable cursor for which the cursorOrientation parameter is set to - PDO::FETCH_ORI_ABS, this value specifies the + PDO::FETCH_ORI_ABS, this value specifies the absolute number of the row in the result set that shall be fetched. For a PDOStatement object representing a scrollable cursor for which the cursorOrientation parameter is set to - PDO::FETCH_ORI_REL, this value specifies the + PDO::FETCH_ORI_REL, this value specifies the row to fetch relative to the cursor position before PDOStatement::fetch was called. diff --git a/reference/pdo/pdostatement/getattribute.xml b/reference/pdo/pdostatement/getattribute.xml index b875e6afbf20..12701b0536de 100644 --- a/reference/pdo/pdostatement/getattribute.xml +++ b/reference/pdo/pdostatement/getattribute.xml @@ -19,7 +19,7 @@ - PDO::ATTR_CURSOR_NAME + PDO::ATTR_CURSOR_NAME (Firebird and ODBC specific): Get the name of the cursor for UPDATE ... WHERE CURRENT OF. diff --git a/reference/pdo/pdostatement/getcolumnmeta.xml b/reference/pdo/pdostatement/getcolumnmeta.xml index 99a0079b7a06..5252e070885a 100644 --- a/reference/pdo/pdostatement/getcolumnmeta.xml +++ b/reference/pdo/pdostatement/getcolumnmeta.xml @@ -100,7 +100,7 @@ pdo_type The type of this column as represented by the - PDO::PARAM_* + PDO::PARAM_* constants. diff --git a/reference/pdo/pdostatement/setattribute.xml b/reference/pdo/pdostatement/setattribute.xml index 7b6af87dec71..674eabdd8c84 100644 --- a/reference/pdo/pdostatement/setattribute.xml +++ b/reference/pdo/pdostatement/setattribute.xml @@ -20,7 +20,7 @@ - PDO::ATTR_CURSOR_NAME + PDO::ATTR_CURSOR_NAME (Firebird and ODBC specific): Set the name of the cursor for UPDATE ... WHERE CURRENT OF. diff --git a/reference/phar/Phar/canCompress.xml b/reference/phar/Phar/canCompress.xml index dce40c987894..b4bf2b155b0a 100644 --- a/reference/phar/Phar/canCompress.xml +++ b/reference/phar/Phar/canCompress.xml @@ -26,7 +26,7 @@ compression - Either Phar::GZ or Phar::BZ2 can be + Either Phar::GZ or Phar::BZ2 can be used to test whether compression is possible with a specific compression algorithm (zlib or bzip2). diff --git a/reference/phar/Phar/compress.xml b/reference/phar/Phar/compress.xml index 4f0409d25855..2dfbad6e8734 100644 --- a/reference/phar/Phar/compress.xml +++ b/reference/phar/Phar/compress.xml @@ -32,7 +32,7 @@ In addition, this method automatically renames the archive, appending .gz, - .bz2 or removing the extension if passed Phar::NONE to + .bz2 or removing the extension if passed Phar::NONE to remove compression. Alternatively, a file extension may be specified with the second parameter. @@ -46,8 +46,8 @@ compression - Compression must be one of Phar::GZ, - Phar::BZ2 to add compression, or Phar::NONE + Compression must be one of Phar::GZ, + Phar::BZ2 to add compression, or Phar::NONE to remove compression. diff --git a/reference/phar/Phar/compressFiles.xml b/reference/phar/Phar/compressFiles.xml index 9367d9c0d6be..8f2cc9b90324 100644 --- a/reference/phar/Phar/compressFiles.xml +++ b/reference/phar/Phar/compressFiles.xml @@ -41,8 +41,8 @@ compression - Compression must be one of Phar::GZ, - Phar::BZ2 to add compression, or Phar::NONE + Compression must be one of Phar::GZ, + Phar::BZ2 to add compression, or Phar::NONE to remove compression. diff --git a/reference/phar/Phar/convertToData.xml b/reference/phar/Phar/convertToData.xml index e127b011fa7e..a7c3e0471f85 100644 --- a/reference/phar/Phar/convertToData.xml +++ b/reference/phar/Phar/convertToData.xml @@ -41,8 +41,8 @@ format - This should be one of Phar::TAR - or Phar::ZIP. If set to &null;, the existing file format + This should be one of Phar::TAR + or Phar::ZIP. If set to &null;, the existing file format will be preserved. @@ -51,9 +51,9 @@ compression - This should be one of Phar::NONE for no whole-archive - compression, Phar::GZ for zlib-based compression, and - Phar::BZ2 for bzip-based compression. + This should be one of Phar::NONE for no whole-archive + compression, Phar::GZ for zlib-based compression, and + Phar::BZ2 for bzip-based compression. diff --git a/reference/phar/Phar/convertToExecutable.xml b/reference/phar/Phar/convertToExecutable.xml index 5c1e67488b0b..88d5b2046c81 100644 --- a/reference/phar/Phar/convertToExecutable.xml +++ b/reference/phar/Phar/convertToExecutable.xml @@ -41,8 +41,8 @@ format - This should be one of Phar::PHAR, Phar::TAR, - or Phar::ZIP. If set to &null;, the existing file format + This should be one of Phar::PHAR, Phar::TAR, + or Phar::ZIP. If set to &null;, the existing file format will be preserved. @@ -51,9 +51,9 @@ compression - This should be one of Phar::NONE for no whole-archive - compression, Phar::GZ for zlib-based compression, and - Phar::BZ2 for bzip-based compression. + This should be one of Phar::NONE for no whole-archive + compression, Phar::GZ for zlib-based compression, and + Phar::BZ2 for bzip-based compression. diff --git a/reference/phar/Phar/getSupportedCompression.xml b/reference/phar/Phar/getSupportedCompression.xml index 3248646ce075..cf8eb85c533b 100644 --- a/reference/phar/Phar/getSupportedCompression.xml +++ b/reference/phar/Phar/getSupportedCompression.xml @@ -26,8 +26,8 @@ &reftitle.returnvalues; - Returns an array containing any of Phar::GZ or - Phar::BZ2, depending on the availability of + Returns an array containing any of Phar::GZ or + Phar::BZ2, depending on the availability of the zlib extension or the bz2 extension. diff --git a/reference/phar/Phar/isCompressed.xml b/reference/phar/Phar/isCompressed.xml index 72d44fa11eeb..b6a84e39262e 100644 --- a/reference/phar/Phar/isCompressed.xml +++ b/reference/phar/Phar/isCompressed.xml @@ -31,7 +31,7 @@ &reftitle.returnvalues; - Phar::GZ, Phar::BZ2 or &false;. + Phar::GZ, Phar::BZ2 or &false;. diff --git a/reference/phar/Phar/isFileFormat.xml b/reference/phar/Phar/isFileFormat.xml index 943c334c665b..f6b3ee546f9a 100644 --- a/reference/phar/Phar/isFileFormat.xml +++ b/reference/phar/Phar/isFileFormat.xml @@ -24,8 +24,8 @@ format - Either Phar::PHAR, Phar::TAR, or - Phar::ZIP to test for the format of the archive. + Either Phar::PHAR, Phar::TAR, or + Phar::ZIP to test for the format of the archive. diff --git a/reference/phar/Phar/setSignatureAlgorithm.xml b/reference/phar/Phar/setSignatureAlgorithm.xml index d92187c6d3fe..d2dd12ef2ab8 100644 --- a/reference/phar/Phar/setSignatureAlgorithm.xml +++ b/reference/phar/Phar/setSignatureAlgorithm.xml @@ -17,9 +17,9 @@ set the signature algorithm for a phar and apply it. The - signature algorithm must be one of Phar::MD5, - Phar::SHA1, Phar::SHA256, - Phar::SHA512, or Phar::OPENSSL. + signature algorithm must be one of Phar::MD5, + Phar::SHA1, Phar::SHA256, + Phar::SHA512, or Phar::OPENSSL. Note that all executable phar archives have a signature created @@ -38,9 +38,9 @@ algo - One of Phar::MD5, - Phar::SHA1, Phar::SHA256, - Phar::SHA512, or Phar::OPENSSL + One of Phar::MD5, + Phar::SHA1, Phar::SHA256, + Phar::SHA512, or Phar::OPENSSL diff --git a/reference/phar/PharData/compress.xml b/reference/phar/PharData/compress.xml index 3be7fa707e55..17398f8dc2a5 100644 --- a/reference/phar/PharData/compress.xml +++ b/reference/phar/PharData/compress.xml @@ -28,7 +28,7 @@ In addition, this method automatically renames the archive, appending .gz, - .bz2 or removing the extension if passed Phar::NONE to + .bz2 or removing the extension if passed Phar::NONE to remove compression. Alternatively, a file extension may be specified with the second parameter. @@ -42,8 +42,8 @@ compression - Compression must be one of Phar::GZ, - Phar::BZ2 to add compression, or Phar::NONE + Compression must be one of Phar::GZ, + Phar::BZ2 to add compression, or Phar::NONE to remove compression. diff --git a/reference/phar/PharData/compressFiles.xml b/reference/phar/PharData/compressFiles.xml index 363fbce92994..17a8b82290c3 100644 --- a/reference/phar/PharData/compressFiles.xml +++ b/reference/phar/PharData/compressFiles.xml @@ -37,8 +37,8 @@ compression - Compression must be one of Phar::GZ, - Phar::BZ2 to add compression, or Phar::NONE + Compression must be one of Phar::GZ, + Phar::BZ2 to add compression, or Phar::NONE to remove compression. diff --git a/reference/phar/PharData/convertToData.xml b/reference/phar/PharData/convertToData.xml index 1f4d12dde571..0a6edd3d32d1 100644 --- a/reference/phar/PharData/convertToData.xml +++ b/reference/phar/PharData/convertToData.xml @@ -42,8 +42,8 @@ format - This should be one of Phar::TAR - or Phar::ZIP. If set to &null;, the existing file format + This should be one of Phar::TAR + or Phar::ZIP. If set to &null;, the existing file format will be preserved. @@ -52,9 +52,9 @@ compression - This should be one of Phar::NONE for no whole-archive - compression, Phar::GZ for zlib-based compression, and - Phar::BZ2 for bzip-based compression. + This should be one of Phar::NONE for no whole-archive + compression, Phar::GZ for zlib-based compression, and + Phar::BZ2 for bzip-based compression. diff --git a/reference/phar/PharData/convertToExecutable.xml b/reference/phar/PharData/convertToExecutable.xml index 64b0baf8f2cf..b09fae4903ac 100644 --- a/reference/phar/PharData/convertToExecutable.xml +++ b/reference/phar/PharData/convertToExecutable.xml @@ -39,8 +39,8 @@ format - This should be one of Phar::PHAR, Phar::TAR, - or Phar::ZIP. If set to &null;, the existing file format + This should be one of Phar::PHAR, Phar::TAR, + or Phar::ZIP. If set to &null;, the existing file format will be preserved. @@ -49,9 +49,9 @@ compression - This should be one of Phar::NONE for no whole-archive - compression, Phar::GZ for zlib-based compression, and - Phar::BZ2 for bzip-based compression. + This should be one of Phar::NONE for no whole-archive + compression, Phar::GZ for zlib-based compression, and + Phar::BZ2 for bzip-based compression. diff --git a/reference/phar/PharData/setSignatureAlgorithm.xml b/reference/phar/PharData/setSignatureAlgorithm.xml index b759b4b6e87c..4014e69a9191 100644 --- a/reference/phar/PharData/setSignatureAlgorithm.xml +++ b/reference/phar/PharData/setSignatureAlgorithm.xml @@ -17,9 +17,9 @@ Set the signature algorithm for a phar and apply it. The - signature algorithm must be one of Phar::MD5, - Phar::SHA1, Phar::SHA256, - Phar::SHA512, or Phar::OPENSSL. + signature algorithm must be one of Phar::MD5, + Phar::SHA1, Phar::SHA256, + Phar::SHA512, or Phar::OPENSSL. @@ -31,9 +31,9 @@ algo - One of Phar::MD5, - Phar::SHA1, Phar::SHA256, - Phar::SHA512, or Phar::OPENSSL + One of Phar::MD5, + Phar::SHA1, Phar::SHA256, + Phar::SHA512, or Phar::OPENSSL