#
fa8d9b11 |
| 28-Aug-2020 |
George Peter Banyard |
Improve type declarations for Zend APIs Voidification of Zend API which always succeeded Use bool argument types instead of int for boolean arguments Use bool return type for functio
Improve type declarations for Zend APIs Voidification of Zend API which always succeeded Use bool argument types instead of int for boolean arguments Use bool return type for functions which return true/false (1/0) Use zend_result return type for functions which return SUCCESS/FAILURE as they don't follow normal boolean semantics Closes GH-6002
show more ...
|
Revision tags: 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
|
#
d30cd7d7 |
| 26-May-2020 |
Máté Kocsis |
Review the usage of apostrophes in error messages Closes GH-5590
|
#
2b5de6f8 |
| 01-Jul-2020 |
Max Semenik |
Remove proto comments from C files Closes GH-5758
|
#
88021ffe |
| 12-Jun-2020 |
Nikita Popov |
Fix count_commas implementation Ooops, I did not account for the changing length here.
|
#
f691693e |
| 12-Jun-2020 |
Nikita Popov |
Fix null pointer ub in encoding parsing And do a bit of drive-by cleanup by extracting count_commas and reducing some variable scopes.
|
#
5a04796f |
| 27-May-2020 |
Christoph M. Becker |
Fix MSVC level 1 (severe) warnings We fix (hopefully) all instances of: * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4005>
Fix MSVC level 1 (severe) warnings We fix (hopefully) all instances of: * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4005> * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4024> * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4028> * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4047> * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4087> * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4090> * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4273> * <https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4312> `zend_llist_add_element()` and `zend_llist_prepend_element()` now explicitly expect a *const* pointer. We use the macro `ZEND_VOIDP()` instead of a `(void*)` cast to suppress C4090; this should prevent accidential removal of the cast by clarifying the intention, and makes it easier to remove the casts if the issue[1] will be resolved sometime. [1] <https://developercommunity.visualstudio.com/content/problem/390711/c-compiler-incorrect-propagation-of-const-qualifie.html>
show more ...
|
#
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
|
#
481b7421 |
| 07-May-2020 |
Nikita Popov |
Throw warning if invalid internal_encoding ini is specified
|
#
217f6013 |
| 07-May-2020 |
Nikita Popov |
Remove no_language from mbfl_string This is not actually used for anything and just causes confusion.
|
#
226d9dd3 |
| 07-May-2020 |
Nikita Popov |
Only allow "pass" as input/output encoding "pass" is not a real encoding, it just means "don't perform any conversion". Using it as an internal encoding or passing it to any of the m
Only allow "pass" as input/output encoding "pass" is not a real encoding, it just means "don't perform any conversion". Using it as an internal encoding or passing it to any of the mbstring() function will not work (and on master commonly assert).
show more ...
|
#
5bfa9598 |
| 07-May-2020 |
Nikita Popov |
Return false from failed mb_convert_variables() If we fail to detect the encoding return false, just like mb_convert_encoding() does, and the implementation here clearly intended. Pr
Return false from failed mb_convert_variables() If we fail to detect the encoding return false, just like mb_convert_encoding() does, and the implementation here clearly intended. Previously the "pass" pseudo-incoding was returned.
show more ...
|
#
71f48260 |
| 06-May-2020 |
Nikita Popov |
Fix assertion failure when failing to detect encoding Looks like prior to 7.3 this just passed the original string through. Since 7.3 it returns false. Let's stick with that behavior.
|
#
7d4ff844 |
| 04-May-2020 |
Nikita Popov |
Remove persistent allocators from libmbfl These functions are not used, and I don't think we have any plans to ever use them.
|
Revision tags: php-7.4.6RC1, php-7.3.18RC1 |
|
#
6111d64c |
| 16-Apr-2020 |
Máté Kocsis |
Improve a last couple of argument error messages Closes GH-5404
|
Revision tags: php-7.2.30, php-7.4.5, php-7.3.17 |
|
#
1f48feeb |
| 13-Apr-2020 |
Máté Kocsis |
Improve some TypeError and ValueError messages Closes GH-5377
|
#
01762e56 |
| 12-Apr-2020 |
George Peter Banyard |
Adapt assertion as mbfl_strwidth returns a size_t
|
#
12ec7a27 |
| 08-Apr-2020 |
George Peter Banyard |
Convert if blocks to assertions and adapt stubs accordingly
|
#
6031b082 |
| 07-Apr-2020 |
George Peter Banyard |
Revert "Fix Bug #79448 0 is a valid Unicode codepoint, but mb_substitute_character(0) fails" This commit brings some substantial changes in behaviour due to the weird implementation. Thi
Revert "Fix Bug #79448 0 is a valid Unicode codepoint, but mb_substitute_character(0) fails" This commit brings some substantial changes in behaviour due to the weird implementation. This will be fixed in master due to BC concerns. This reverts commit 1333b46d6dc0c293c1fd626803f91bc69743eb79.
show more ...
|
#
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
|
#
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
|