#
1cba7764 |
| 13-Jul-2021 |
Nikita Popov |
Remove zend_atoi() (#7232) It's the same as (int) zend_atol() -- it doesn't try to do anything integer size specific. Canonicalize to one function in preparation for renaming zend_at
Remove zend_atoi() (#7232) It's the same as (int) zend_atol() -- it doesn't try to do anything integer size specific. Canonicalize to one function in preparation for renaming zend_atol() to something less misleading. FFI test is adjusted to use a zend_test function. It just calls zend_atol() internally, but could really be anything. Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
show more ...
|
#
ce3846cd |
| 07-Jul-2021 |
Nikita Popov |
Merge branch 'PHP-8.0' * PHP-8.0: Fix use after free on compound division by zero
|
#
62ecf54f |
| 07-Jul-2021 |
Nikita Popov |
Fix use after free on compound division by zero We can't destroy the result operand early, because the division might fail, in which case we need to preserve the original value. Plac
Fix use after free on compound division by zero We can't destroy the result operand early, because the division might fail, in which case we need to preserve the original value. Place the division result in a temporary zval, and only copy it on success. Fixes oss-fuzz #35876.
show more ...
|
Revision tags: php-8.1.0alpha3 |
|
#
d3deb825 |
| 01-Jul-2021 |
Nikita Popov |
Merge branch 'PHP-8.0' * PHP-8.0: Fix leak on div by zero compound assignment with coercion
|
#
540fed1b |
| 01-Jul-2021 |
Nikita Popov |
Fix leak on div by zero compound assignment with coercion The result == op1 check did not work properly here, because op1 was &op1_copy at this point. Move the division by zero reporting
Fix leak on div by zero compound assignment with coercion The result == op1 check did not work properly here, because op1 was &op1_copy at this point. Move the division by zero reporting out of the _base function, so it can check the original op1.
show more ...
|
#
65bbd92d |
| 01-Jul-2021 |
Nikita Popov |
Initialize retval on bitwise_not exception |
Revision tags: php-7.4.21, php-7.3.29 |
|
#
aff36587 |
| 29-Jun-2021 |
Patrick Allaert |
Fixed some spaces used instead of tabs |
Revision tags: php-8.0.8, php-8.1.0alpha2, php-7.4.21RC1, php-8.0.8RC1, php-8.1.0alpha1 |
|
#
b8e380ab |
| 03-Jun-2021 |
Ayesh Karunaratne |
Update deprecation message for incompatible float to int conversion Updates the deprecation message for implicit incompatible float to int conversion from: ``` Implicit conversi
Update deprecation message for incompatible float to int conversion Updates the deprecation message for implicit incompatible float to int conversion from: ``` Implicit conversion from non-compatible float %.*H to int in %s on line %d ``` to ``` Implicit conversion from float %.*H to int loses precision in %s on line %d ``` Related: #6661
show more ...
|
Revision tags: php-8.0.7, php-7.4.20 |
|
#
b6958bb8 |
| 31-May-2021 |
George Peter Banyard |
Implement "Deprecate implicit non-integer-compatible float to int conversions" RFC. (#6661) RFC: https://wiki.php.net/rfc/implicit-float-int-deprecate Co-authored-by: Nikita Popov <
Implement "Deprecate implicit non-integer-compatible float to int conversions" RFC. (#6661) RFC: https://wiki.php.net/rfc/implicit-float-int-deprecate Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
show more ...
|
Revision tags: php-8.0.7RC1, php-7.4.20RC1 |
|
#
aca6aefd |
| 14-May-2021 |
George Peter Banyard |
Remove 'register' type qualifier (#6980) The compiler should be smart enough to optimize this on its own |
Revision tags: php-8.0.6, php-7.4.19, php-7.4.18, php-7.3.28, php-8.0.5 |
|
#
0c571185 |
| 13-Apr-2021 |
Nikita Popov |
Add zend_ulong_to_str() API No point in going through a smart_str and append_unsigned if we can construct the result directly... |
Revision tags: php-8.0.5RC1 |
|
#
65a5c184 |
| 13-Apr-2021 |
Nikita Popov |
Add functions to convert i64/u64 to string PDO implement half of this, but this functionality is generally useful. Provide these as zend_u64_to_str and zend_i64_to_str to complement
Add functions to convert i64/u64 to string PDO implement half of this, but this functionality is generally useful. Provide these as zend_u64_to_str and zend_i64_to_str to complement zend_long_to_str.
show more ...
|
Revision tags: php-7.4.18RC1 |
|
#
462da6e0 |
| 31-Mar-2021 |
Josh Soref |
Fix spelling and grammar mistakes This PR corrects misspellings identified by the check-spelling action. The misspellings have been reported at jsoref@b6ba3e2#commitcomment-48946465
Fix spelling and grammar mistakes This PR corrects misspellings identified by the check-spelling action. The misspellings have been reported at jsoref@b6ba3e2#commitcomment-48946465 The action reports that the changes in this PR would make it happy: jsoref@602417c Closes GH-6822.
show more ...
|
Revision tags: php-8.0.4RC1, php-7.4.17RC1, php-8.0.3, php-7.4.16, php-8.0.3RC1, php-7.4.16RC1, 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, php-7.4.12RC1, php-7.3.24RC1, php-7.2.34, php-8.0.0rc1 |
|
#
5caaf40b |
| 29-Sep-2020 |
George Peter Banyard |
Introduce pseudo-keyword ZEND_FALLTHROUGH And use it instead of comments |
#
9da66e6a |
| 01-Mar-2021 |
Dmitry Stogov |
Optimized object conversion to array without rebulding properties HashTable |
#
5e015425 |
| 19-Feb-2021 |
Dmitry Stogov |
Improve basename(). Avoid calling mblen() for ASCII compatible locales. |
#
353f7ffb |
| 16-Feb-2021 |
Nikita Popov |
Delref only after successful allocation Otherwise we may have inconsistent refcounts after OOM. I expect this problem is much more prevalent, but this at least fixes some string
Delref only after successful allocation Otherwise we may have inconsistent refcounts after OOM. I expect this problem is much more prevalent, but this at least fixes some string/array separation cases. Fixes oss-fuzz #30999.
show more ...
|
#
3e01f5af |
| 15-Jan-2021 |
Nikita Popov |
Replace zend_bool uses with bool We're starting to see a mix between uses of zend_bool and bool. Replace all usages with the standard bool type everywhere. Of course, zend_bool
Replace zend_bool uses with bool We're starting to see a mix between uses of zend_bool and bool. Replace all usages with the standard bool type everywhere. Of course, zend_bool is retained as an alias.
show more ...
|
#
058756b3 |
| 15-Jan-2021 |
Nikita Popov |
Remove the convert_to_long_base function This function is unused in php-src, and has somewhat dubious semantics, especially since we switched convert_to_long to not use strtol for th
Remove the convert_to_long_base function This function is unused in php-src, and has somewhat dubious semantics, especially since we switched convert_to_long to not use strtol for the base 10 case. If you want to convert strings from a different base, use ZEND_STRTOL directly.
show more ...
|
#
b4292284 |
| 14-Jan-2021 |
Nikita Popov |
Remove zend_locale_sprintf_double() This function is unused, and also not particularly useful now that PHP no longer prints doubles in a locale-sensitive way unless someone really go
Remove zend_locale_sprintf_double() This function is unused, and also not particularly useful now that PHP no longer prints doubles in a locale-sensitive way unless someone really goes out of their way to force it.
show more ...
|
#
66ecee62 |
| 12-Oct-2020 |
Nikita Popov |
Merge branch 'PHP-7.4' into PHP-8.0 * PHP-7.4: Detect self-addition of array more accurately Deindirect source elements in zend_hash_merge
|
#
5a7f9afb |
| 12-Oct-2020 |
Nikita Popov |
Merge branch 'PHP-7.3' into PHP-7.4 * PHP-7.3: Detect self-addition of array more accurately Deindirect source elements in zend_hash_merge
|
#
3c4dd73c |
| 12-Oct-2020 |
Nikita Popov |
Detect self-addition of array more accurately While the zvals may be different, they may still point to the same array. Fixes oss-fuzz #26245. |
#
ae77c7b0 |
| 02-Oct-2020 |
Nikita Popov |
Return correct result code for division by zero Turns out we do need to return FAILURE here on div by zero exception. Use a three-way return value from div_function_base. Fixes
Return correct result code for division by zero Turns out we do need to return FAILURE here on div by zero exception. Use a three-way return value from div_function_base. Fixes oss-fuzz #25975.
show more ...
|
Revision tags: php-7.4.11, php-7.3.23 |
|
#
fb4554e4 |
| 21-Sep-2020 |
Nikita Popov |
Throw warning for failed object to int/float conversion We previously couldn't increase the error level here because it was coupled to comparison handling. This is no longer the case
Throw warning for failed object to int/float conversion We previously couldn't increase the error level here because it was coupled to comparison handling. This is no longer the case in PHP 8.
show more ...
|