#
d8ef868b |
| 26-Nov-2023 |
Alex Dowad |
Return value of mb_get_info can be NULL This has been the case at least since PHP 5.4. Thanks to Girgias for pointing it out. It appears that there are several global variables
Return value of mb_get_info can be NULL This has been the case at least since PHP 5.4. Thanks to Girgias for pointing it out. It appears that there are several global variables internal to mbstring which can be queried via mb_get_info() and which could be NULL, but at the very least, we know that "mbstring.http_input" is one of them.
show more ...
|
#
a6f489b4 |
| 05-Aug-2022 |
Ilija Tovilo |
Fix mb_strimwidth RC info Closes GH-9254 |
#
e328c683 |
| 19-Jul-2022 |
Máté Kocsis |
Rename @cname to @cvalue in stubs (#9043) @cname currently refers to the constant name in C. However, it is not always a (constant) name, but sometimes a function invocation, so naming it as
Rename @cname to @cvalue in stubs (#9043) @cname currently refers to the constant name in C. However, it is not always a (constant) name, but sometimes a function invocation, so naming it as @cvalue would be more appropriate.
show more ...
|
#
56137cd2 |
| 23-Jun-2022 |
Máté Kocsis |
Declare ext/mbstring constants in stubs (#8798) |
#
8e6e9838 |
| 30-Aug-2021 |
Máté Kocsis |
Add support for generating MAY_BE_ARRAY_OF_REF func info flag (#7416) |
#
fdc60829 |
| 26-Aug-2021 |
Máté Kocsis |
Generate optimizer func info from stubs for various extensions (#7409) ext/hash, ext/iconv, ext/mbstring, ext/xml, ext/zlib |
#
cad66533 |
| 09-Feb-2021 |
Máté Kocsis |
Generate class entries from stubs for ldap, libxml, mbstring and mysqli Closes GH-6684 |
#
5582490b |
| 13-Oct-2020 |
Nikita Popov |
Normalize mb_ereg() return value mb_ereg()/mb_eregi() currently have an inconsistent return value based on whether the $matches parameter is passed or not: > Returns the byte le
Normalize mb_ereg() return value mb_ereg()/mb_eregi() currently have an inconsistent return value based on whether the $matches parameter is passed or not: > Returns the byte length of the matched string if a match for > pattern was found in string, or FALSE if no matches were found > or an error occurred. > > If the optional parameter regs was not passed or the length of > the matched string is 0, this function returns 1. Coupling this behavior to the $matches parameter doesn't make sense -- we know the match length either way, there is no technical reason to distinguish them. However, returning the match length is not particularly useful either, especially due to the need to convert 0-length into 1-length to satisfy "truthy" checks. We could always return 1, which would kind of match the behavior of preg_match() -- however, preg_match() actually returns the number of matches, which is 0 or 1 for preg_match(), while false signals an error. However, mb_ereg() returns false both for no match and for an error. This would result in an odd 1|false return value. The patch canonicalizes mb_ereg() to always return a boolean, where true indicates a match and false indicates no match or error. This also matches the behavior of the mb_ereg_match() and mb_ereg_search() functions. This fixes the default value integrity violation in PHP 8. Closes GH-6331.
show more ...
|
#
cafceea7 |
| 24-Sep-2020 |
Nikita Popov |
Update mbstring parameter names Closes GH-6207. |
#
94854e0d |
| 20-Sep-2020 |
Larry Garfield |
Standardize mbstring and string on using 'string' as a parameter name. Closes GH-6171. |
#
c37a1cd6 |
| 10-Sep-2020 |
Máté Kocsis |
Promote a few remaining errors in ext/standard Closes GH-6110 |
#
1c81a345 |
| 14-Sep-2020 |
Máté Kocsis |
Make mb_send_mail() consistent with mail() The $additional_headers parameter shouldn't accept null. |
#
3e800e99 |
| 24-Aug-2020 |
Máté Kocsis |
Move custom type checks to ZPP Closes GH-6034 |
#
0d330e1a |
| 28-Jul-2020 |
Máté Kocsis |
Add a few missing parameter types in stubs Related to GH-5627 |
#
ac0da090 |
| 18-May-2020 |
Máté Kocsis |
Fix UNKNOWN default values in ext/mbstring and ext/gd Closes GH-5598 |
#
33ddc3bb |
| 21-Jul-2020 |
Nikita Popov |
Fix mb_ereg_search* arg and func info |
#
68164f40 |
| 12-May-2020 |
George Peter Banyard |
Fix [-Wundef] warning in MBString extension |
#
7dd332f1 |
| 03-May-2020 |
George Peter Banyard |
Refactor mb_substitute_character() Using the new Fast ZPP API for string|int|null This also fixes Bug #79448 which was too disruptive to fix in PHP 7.x |
#
12ec7a27 |
| 08-Apr-2020 |
George Peter Banyard |
Convert if blocks to assertions and adapt stubs accordingly |
#
38d93262 |
| 08-Apr-2020 |
Nikita Popov |
Update mb_strrpos() stub We no longer accept the encoding as 3rd param, so we can make this a proper int argument. |
#
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 ...
|