History log of /php-src/ext/mbstring/mbstring.stub.php (Results 26 – 42 of 42)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 21cfa03f 05-Apr-2020 Máté Kocsis

Generate function entries for another batch of extensions

Closes GH-5352

# 1b6f61e7 05-Apr-2020 George Peter Banyard

Promote invalid case mode to ValueError in mb_case_converter

Add assertions to check the return value is not NULL as this indicates a bug.
Add identical assertion to mb_strtoupper and mb

Promote invalid case mode to ValueError in mb_case_converter

Add assertions to check the return value is not NULL as this indicates a bug.
Add identical assertion to mb_strtoupper and mb_strtolower.
This means these functions can't return false anymore, ammend stubs accordingly.

show more ...

# a34e73de 03-Apr-2020 George Peter Banyard

mb_scrub() can't return false anymore

Also drop the intermediary function which was only used here

# 65604687 02-Apr-2020 George Peter Banyard

Refactor mb_substr_count()

Promote empty needle warning to ValueError
Convert if branch into an assertion as if mbfl_substr_count fails this now implies a bug
Thus mb_substr_count()

Refactor mb_substr_count()

Promote empty needle warning to ValueError
Convert if branch into an assertion as if mbfl_substr_count fails this now implies a bug
Thus mb_substr_count() can only return int now, fix stubs accordingly

show more ...

# 165fde9a 02-Apr-2020 George Peter Banyard

Convert if branch to assertion in mb_strlen

This operation should never fail, therefore it's converted to an assertion.
Thus this mb_strlen() can now only return int, fix stubs according

Convert if branch to assertion in mb_strlen

This operation should never fail, therefore it's converted to an assertion.
Thus this mb_strlen() can now only return int, fix stubs accordingly

show more ...

# d44ee911 02-Apr-2020 George Peter Banyard

Promote mb_str_split warning to ValueError

Also add a TODO about documenting this funcion on PHP.net
Convert some checks to assertions as if they don't hold something went wrong during m

Promote mb_str_split warning to ValueError

Also add a TODO about documenting this funcion on PHP.net
Convert some checks to assertions as if they don't hold something went wrong during memory allocation
Due to these changes this function cannot return false anymore, fix stubs accordingly

show more ...

Revision tags: php-7.4.5RC1, php-7.3.17RC1
# 8a2ce27b 30-Mar-2020 Nikita Popov

mb_detect_order(): Use proper array|string argument

# b02b3539 30-Mar-2020 Nikita Popov

mb_check_encoding(): Make var a proper array|string arg

# 50d07ff2 30-Mar-2020 Nikita Popov

mb_detect_encoding(): Use proper array|string parameter

Needed to add support for nullabiltiy in some places.

# bb652369 30-Mar-2020 Nikita Popov

mb_convert_variables(): Make $from an array|string argument

# 0d244227 30-Mar-2020 Nikita Popov

mb_convert_encoding(): Make $input a proper array|string arg

# f24f6cba 30-Mar-2020 Nikita Popov

mb_convert_encoding(): Make $from_encodings a proper array|string arg

Switching to FastZPP, as we don't support this in normal zpp.

Revision tags: php-7.3.18, php-7.4.4, php-7.2.29, php-7.3.16, php-7.4.4RC1, php-7.3.16RC1, php-7.4.3, php-7.2.28
# 7d0102df 17-Feb-2020 Christoph M. Becker

Revert "Replace @param annotations with type declarations"

This reverts commit c31029f335ca1b453af799805c43c37e959ad555.

# c31029f3 16-Feb-2020 Christoph M. Becker

Replace @param annotations with type declarations

Revision tags: php-7.3.15RC1, php-7.4.3RC1, php-7.3.15, php-7.2.27, php-7.4.2, php-7.3.14, php-7.3.14RC1, php-7.4.2RC1, php-7.4.1, php-7.2.26, php-7.3.13, php-7.4.1RC1, php-7.3.13RC1, php-7.2.26RC1, php-7.4.0, php-7.2.25, php-7.3.12, php-7.4.0RC6
# 27e83d0f 08-Nov-2019 Máté Kocsis

Add union return types for function stubs

Revision tags: php-7.3.12RC1, php-7.2.25RC1, php-7.4.0RC5, php-7.1.33, php-7.2.24, php-7.3.11, php-7.4.0RC4, php-7.3.11RC1, php-7.2.24RC1
# e2100619 07-Oct-2019 Christoph M. Becker

Expect appropriate parameter type in the first place

`mb_encode_numericentity()` and `mb_decode_numericentity()` accepted
arbitrary zvals as `$convmap`, but ignored anything else than ar

Expect appropriate parameter type in the first place

`mb_encode_numericentity()` and `mb_decode_numericentity()` accepted
arbitrary zvals as `$convmap`, but ignored anything else than arrays.
This appears to be an unresolved relict of their ZPP conversion for
PHP 5.3[1]. We now expect an array in the first place.

We also expect `count($convmap)` to be a multiple of four (else we
throw a `ValueError`), and do no longer special case empty `$convmap`.

[1] <http://git.php.net/?p=php-src.git;a=commit;h=1c77f594294aee9d60e7309279c616c01c39ba9d>

show more ...

# 0a47096c 06-Oct-2019 Christoph M. Becker

Add MBString arginfo stubs

12