From 7b7d77e47a0f7987a2ede2db21b4d0e14f75f504 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Mon, 12 Jul 2021 18:24:08 +0200 Subject: [PATCH] Update stubs for php to v2021.1 Signed-off-by: Daniel Kesselberg --- build/stubs/IntlChar.php | 168 +- build/stubs/apcu.php | 54 +- build/stubs/gd.php | 741 ++++----- build/stubs/imagick.php | 768 +++++++++- build/stubs/intl.php | 2612 ++++++++++++++++++-------------- build/stubs/ldap.php | 485 +++--- build/stubs/memcached.php | 14 +- build/stubs/redis.php | 196 ++- build/stubs/redis_cluster.php | 43 +- build/stubs/redis_sentinel.php | 197 +++ 10 files changed, 3299 insertions(+), 1979 deletions(-) create mode 100644 build/stubs/redis_sentinel.php diff --git a/build/stubs/IntlChar.php b/build/stubs/IntlChar.php index ea9e1653bd159..6d4d54aa30cd5 100644 --- a/build/stubs/IntlChar.php +++ b/build/stubs/IntlChar.php @@ -1,12 +1,14 @@ IntlChar provides access to a number of utility methods that can be used to access information about Unicode characters.

*

The methods and constants adhere closely to the names and behavior used by the underlying ICU library.

* @since 7.0 */ class IntlChar { - const UNICODE_VERSION = 6.3; + const UNICODE_VERSION = 13.0; const CODEPOINT_MIN = 0; const CODEPOINT_MAX = 1114111; const FOLD_CASE_DEFAULT = 0; @@ -69,7 +71,7 @@ class IntlChar { const PROPERTY_CHANGES_WHEN_CASEFOLDED = 54; const PROPERTY_CHANGES_WHEN_CASEMAPPED = 55; const PROPERTY_CHANGES_WHEN_NFKC_CASEFOLDED = 56; - const PROPERTY_BINARY_LIMIT = 57; + const PROPERTY_BINARY_LIMIT = 65; const PROPERTY_BIDI_CLASS = 4096; const PROPERTY_INT_START = 4096; const PROPERTY_BLOCK = 4097; @@ -93,7 +95,7 @@ class IntlChar { const PROPERTY_SENTENCE_BREAK = 4115; const PROPERTY_WORD_BREAK = 4116; const PROPERTY_BIDI_PAIRED_BRACKET_TYPE = 4117; - const PROPERTY_INT_LIMIT = 4118; + const PROPERTY_INT_LIMIT = 4121; const PROPERTY_GENERAL_CATEGORY_MASK = 8192; const PROPERTY_MASK_START = 8192; const PROPERTY_MASK_LIMIT = 8193; @@ -431,7 +433,7 @@ class IntlChar { const BLOCK_CODE_SUPPLEMENTAL_ARROWS_C = 250; const BLOCK_CODE_TIRHUTA = 251; const BLOCK_CODE_WARANG_CITI = 252; - const BLOCK_CODE_COUNT = 263; + const BLOCK_CODE_COUNT = 309; const BLOCK_CODE_INVALID_CODE = -1; const BPT_NONE = 0; const BPT_OPEN = 1; @@ -565,7 +567,7 @@ class IntlChar { const JG_MANICHAEAN_YODH = 83; const JG_MANICHAEAN_ZAYIN = 84; const JG_STRAIGHT_WAW = 85; - const JG_COUNT = 86; + const JG_COUNT = 102; const GCB_OTHER = 0; const GCB_CONTROL = 1; const GCB_CR = 2; @@ -579,7 +581,7 @@ class IntlChar { const GCB_SPACING_MARK = 10; const GCB_PREPEND = 11; const GCB_REGIONAL_INDICATOR = 12; - const GCB_COUNT = 13; + const GCB_COUNT = 18; const WB_OTHER = 0; const WB_ALETTER = 1; const WB_FORMAT = 2; @@ -597,7 +599,7 @@ class IntlChar { const WB_HEBREW_LETTER = 14; const WB_SINGLE_QUOTE = 15; const WB_DOUBLE_QUOTE = 16; - const WB_COUNT = 17; + const WB_COUNT = 23; const SB_OTHER = 0; const SB_ATERM = 1; const SB_CLOSE = 2; @@ -655,7 +657,7 @@ class IntlChar { const LB_CONDITIONAL_JAPANESE_STARTER = 37; const LB_HEBREW_LETTER = 38; const LB_REGIONAL_INDICATOR = 39; - const LB_COUNT = 40; + const LB_COUNT = 43; const NT_NONE = 0; const NT_DECIMAL = 1; const NT_DIGIT = 2; @@ -668,10 +670,11 @@ class IntlChar { const HST_LV_SYLLABLE = 4; const HST_LVT_SYLLABLE = 5; const HST_COUNT = 6; + const NO_NUMERIC_VALUE = -123456789; /** * Check a binary Unicode property for a code point - * @link https://php.net/manual/ru/intlchar.hasbinaryproperty.php + * @link https://php.net/manual/en/intlchar.hasbinaryproperty.php * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}") * @param int $property The Unicode property to lookup (see the IntlChar::PROPERTY_* constants). * @return bool|null Returns TRUE or FALSE according to the binary Unicode property value for codepoint. @@ -679,10 +682,11 @@ class IntlChar { * Or NULL if codepoint is out of bounds. * @since 7.0 */ + #[Pure] static public function hasBinaryProperty($codepoint, $property){} /** - * @link https://php.net/manual/ru/intlchar.charage.php + * @link https://php.net/manual/en/intlchar.charage.php * Get the "age" of the code point * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}") * @return array|null The Unicode version number, as an array. For example, version 1.3.31.2 would be represented as [1, 3, 31, 2]. @@ -692,7 +696,7 @@ static public function hasBinaryProperty($codepoint, $property){} public static function charAge($codepoint) {} /** - * @link https://php.net/manual/ru/intlchar.chardigitvalue.php + * @link https://php.net/manual/en/intlchar.chardigitvalue.php * Get the decimal digit value of a decimal digit character * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}") * @return int|null The decimal digit value of codepoint, or -1 if it is not a decimal digit character. @@ -703,7 +707,7 @@ public static function charDigitValue($codepoint){} /** * Get bidirectional category value for a code point - * @link https://php.net/manual/ru/intlchar.chardirection.php + * @link https://php.net/manual/en/intlchar.chardirection.php * @param int|string $codepoint

The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")

* @return int|null

The bidirectional category value; one of the following constants: *

@@ -741,8 +745,8 @@ public static function charDirection($codepoint) {} /** * @link https://php.net/manual/en/intlchar.charfromname.php * Find Unicode character by name and return its code point value - * @param string $characterName

Full name of the Unicode character.

- * @param int $nameChoice [optional]

+ * @param string $name

Full name of the Unicode character.

+ * @param int $type [optional]

* Which set of names to use for the lookup. Can be any of these constants: *