#
f8137084 |
| 24-Apr-2024 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Fix GH-13815: mb_trim() inaccurate $characters default value (#13820) Because the default characters are defined in the stub file, and the stub file is UTF-8 (typically), the characters
Fix GH-13815: mb_trim() inaccurate $characters default value (#13820) Because the default characters are defined in the stub file, and the stub file is UTF-8 (typically), the characters are encoded in the string as UTF-8. When using a different character encoding, there is a mismatch between what mb_trim expects and the UTF-8 encoded string it gets. One way of solving this is by making the characters argument nullable, which would mean that it always uses the internal code path that has the unicode codepoints that are defaulted actually stored as codepoint numbers instead of in a string. Co-authored-by: @ranvis
show more ...
|
#
4d51bfa2 |
| 20-Mar-2024 |
tekimen |
[RFC] Add mb_ucfirst and mb_lcfirst functions (#13161)
|
#
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 ...
|
#
a80b6d7b |
| 30-Sep-2023 |
Yuya Hamada |
Add mb_trim function Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Co-authored-by: Gina Peter Banyard <girgias@php.net>
|
#
68591632 |
| 20-Jun-2023 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
[RFC] Implement mb_str_pad() (#11284) Closes GH-10203.
|
#
97e29bed |
| 22-Apr-2023 |
Alex Dowad |
Use shared, immutable array for return value of mb_list_encodings This will allow us to easily check in other mbstring functions if the list of all supported encodings, returned by mb_li
Use shared, immutable array for return value of mb_list_encodings This will allow us to easily check in other mbstring functions if the list of all supported encodings, returned by mb_list_encodings, is passed in as input to another function. Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com>
show more ...
|
Revision tags: php-8.2.0RC1, php-8.1.10, php-8.0.23, php-8.0.23RC1, php-8.1.10RC1, php-8.2.0beta3 |
|
#
a6f489b4 |
| 05-Aug-2022 |
Ilija Tovilo |
Fix mb_strimwidth RC info Closes GH-9254
|
Revision tags: php-8.2.0beta2, php-8.1.9, php-8.0.22, php-8.1.9RC1, php-8.2.0beta1 |
|
#
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 ...
|
Revision tags: php-8.0.22RC1, php-8.0.21, php-8.1.8, php-8.2.0alpha3 |
|
#
56137cd2 |
| 23-Jun-2022 |
Máté Kocsis |
Declare ext/mbstring constants in stubs (#8798)
|
Revision tags: php-8.1.8RC1, php-8.2.0alpha2, php-8.0.21RC1, php-8.0.20, php-8.1.7, php-8.2.0alpha1, php-7.4.30, php-8.1.7RC1, php-8.0.20RC1, php-8.1.6, php-8.0.19, php-8.1.6RC1, php-8.0.19RC1, php-8.0.18, php-8.1.5, php-7.4.29, php-8.1.5RC1, php-8.0.18RC1, php-8.1.4, php-8.0.17, php-8.1.4RC1, php-8.0.17RC1, php-8.1.3, php-8.0.16, php-7.4.28, php-8.1.3RC1, php-8.0.16RC1, php-8.1.2, php-8.0.15, php-8.1.2RC1, php-8.0.15RC1, php-8.0.14, php-8.1.1, php-7.4.27, php-8.1.1RC1, php-8.0.14RC1, php-7.4.27RC1, php-8.1.0, php-8.0.13, php-7.4.26, php-7.3.33, php-8.1.0RC6, php-7.4.26RC1, php-8.0.13RC1, php-8.1.0RC5, php-7.3.32, php-7.4.25, php-8.0.12, php-8.1.0RC4, php-8.0.12RC1, php-7.4.25RC1, php-8.1.0RC3, php-8.0.11, php-7.4.24, php-7.3.31, php-8.1.0RC2, php-7.4.24RC1, php-8.0.11RC1, php-8.1.0RC1 |
|
#
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
|
Revision tags: php-7.4.23, php-8.0.10, php-7.3.30, php-8.1.0beta3, php-8.0.10RC1, php-7.4.23RC1, php-8.1.0beta2, php-8.0.9, php-7.4.22, php-8.1.0beta1, php-7.4.22RC1, php-8.0.9RC1, php-8.1.0alpha3, php-7.4.21, php-7.3.29, php-8.0.8, php-8.1.0alpha2, php-7.4.21RC1, php-8.0.8RC1, php-8.1.0alpha1, php-8.0.7, php-7.4.20, php-8.0.7RC1, php-7.4.20RC1, php-8.0.6, php-7.4.19, php-7.4.18, php-7.3.28, php-8.0.5, php-8.0.5RC1, php-7.4.18RC1, php-8.0.4RC1, php-7.4.17RC1, php-8.0.3, php-7.4.16, php-8.0.3RC1, php-7.4.16RC1 |
|
#
cad66533 |
| 09-Feb-2021 |
Máté Kocsis |
Generate class entries from stubs for ldap, libxml, mbstring and mysqli Closes GH-6684
|
Revision tags: php-8.0.2, php-7.4.15, php-7.3.27, php-8.0.2RC1, php-7.4.15RC2, php-7.4.15RC1, php-8.0.1, php-7.4.14, php-7.3.26, php-7.4.14RC1, php-8.0.1RC1, php-7.3.26RC1, php-8.0.0, php-7.3.25, php-7.4.13, php-8.0.0RC5, php-7.4.13RC1, php-8.0.0RC4, php-7.3.25RC1, php-7.4.12, php-8.0.0RC3, php-7.3.24, php-8.0.0RC2 |
|
#
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 ...
|
Revision tags: php-7.4.12RC1, php-7.3.24RC1, php-7.2.34, php-8.0.0rc1, php-7.4.11, php-7.3.23 |
|
#
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.
|
Revision tags: php-8.0.0beta4, php-7.4.11RC1, php-7.3.23RC1 |
|
#
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.
|
Revision tags: php-8.0.0beta3, php-7.4.10, php-7.3.22 |
|
#
3e800e99 |
| 24-Aug-2020 |
Máté Kocsis |
Move custom type checks to ZPP Closes GH-6034
|
Revision tags: php-8.0.0beta2, php-7.3.22RC1, php-7.4.10RC1, php-8.0.0beta1, php-7.4.9, php-7.2.33, php-7.3.21 |
|
#
0d330e1a |
| 28-Jul-2020 |
Máté Kocsis |
Add a few missing parameter types in stubs Related to GH-5627
|
Revision tags: php-8.0.0alpha3, php-7.4.9RC1, php-7.3.21RC1, php-7.4.8, php-7.2.32, php-8.0.0alpha2, php-7.3.20, php-8.0.0alpha1, php-7.4.8RC1, php-7.3.20RC1, php-7.4.7, php-7.3.19, php-7.4.7RC1, php-7.3.19RC1 |
|
#
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
|
Revision tags: php-7.4.6, php-7.2.31 |
|
#
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
|
Revision tags: php-7.4.6RC1, php-7.3.18RC1, php-7.2.30, php-7.4.5, php-7.3.17 |
|
#
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.
|