#
07062e1f |
| 03-Apr-2020 |
George Peter Banyard |
Promote some warnings to ValueError in mbstring Promoted warnings are: * Empty encoding lists * Unknown language * Start and Width out of bound
|
#
bd52b62a |
| 03-Apr-2020 |
George Peter Banyard |
Convert some if blocks to assertions
|
#
1333b46d |
| 03-Apr-2020 |
George Peter Banyard |
Fix Bug #79448 0 is a valid Unicode codepoint, but mb_substitute_character(0) fails
|
#
fa3b8c75 |
| 01-Apr-2020 |
George Peter Banyard |
Promote unknown encoding throws in encoding array/string list For the string list we emit still emit a warning by comparing arg_num to 0 Closes GH-5337
|
#
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 ...
|
#
f488b5d0 |
| 02-Apr-2020 |
George Peter Banyard |
Merge mb_strstr() variants under a common implementation This reduces heavy ducplicate code
|
#
73787134 |
| 02-Apr-2020 |
George Peter Banyard |
Improve code flow These nested if-else blocks are unnecessary since we return early.
|
#
4cd3d7b1 |
| 02-Apr-2020 |
George Peter Banyard |
Promote empty string warning to ValueError in mb_ord()
|
#
18dc9044 |
| 01-Apr-2020 |
George Peter Banyard |
Fix bug 79441
|
#
229dff9f |
| 31-Mar-2020 |
George Peter Banyard |
Promote unsupported encoding warnings to ValueError
|
#
21227dc1 |
| 31-Mar-2020 |
George Peter Banyard |
Use php_mb_get_encoding instead of mbfl_name2encoding to get encoding This reduces the number of places where the error message template is used. Also promote the mb_check_encoding() war
Use php_mb_get_encoding instead of mbfl_name2encoding to get encoding This reduces the number of places where the error message template is used. Also promote the mb_check_encoding() warning to ValueError and add a test to cover the behaviour.
show more ...
|
#
11f0e1d1 |
| 31-Mar-2020 |
Nikita Popov |
Move encoding fetching out of php_mb_convert_encoding()
|
#
857fe616 |
| 31-Mar-2020 |
Nikita Popov |
Remove unnecesary check in php_mb_check_encoding() The caller makes sure that this is not NULL.
|
Revision tags: php-7.4.5RC1, php-7.3.17RC1 |
|
#
90eeca25 |
| 28-Mar-2020 |
George Peter Banyard |
Convert some unknown encoding warnings to ValueErrors in ext/mbstring Promotes only the warnings where the encoding comes only from a string. Functions which accept an array of encodings
Convert some unknown encoding warnings to ValueErrors in ext/mbstring Promotes only the warnings where the encoding comes only from a string. Functions which accept an array of encodings will be fixed at a later stage. Closes GH-5317
show more ...
|
#
3ca08ee7 |
| 31-Mar-2020 |
Nikita Popov |
Make sure mbstring.internal_encoding deprecation is always thrown It was not thrown if the setting was specified via -d at least.
|
#
8a2ce27b |
| 30-Mar-2020 |
Nikita Popov |
mb_detect_order(): Use proper array|string argument
|
#
500230fc |
| 30-Mar-2020 |
Nikita Popov |
Remove persistent arg from parse_encoding_array() It is always zero.
|
#
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.
|
#
7cea789c |
| 30-Mar-2020 |
Nikita Popov |
Parse mb_convert_encoding() encodings only once Instead of re-parsing them for every converted value. Also reuse the generic parse_array() helper.
|