#
7b74cadf |
| 04-Jul-2024 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Fix uninitialized (dummy) memory in php_strtr_array() (#14812) Fixes one issue in GH-14806.
|
#
ec82927d |
| 24-Aug-2023 |
Kamil Tekiela |
Merge branch 'PHP-8.1' into PHP-8.2 * PHP-8.1: Fix param name in implode() error message
|
#
b1ce1d1f |
| 24-Aug-2023 |
Kamil Tekiela |
Fix param name in implode() error message |
#
93e0f6b4 |
| 25-Mar-2023 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Fix undefined behaviour in string uppercasing and lowercasing At least on 32-bit, the address computations overflow in running the test on CI with UBSAN enabled. Fix it by reordering the
Fix undefined behaviour in string uppercasing and lowercasing At least on 32-bit, the address computations overflow in running the test on CI with UBSAN enabled. Fix it by reordering the arithmetic. Since a part of the expression is already used in the code above the computation, this should not negatively affect performance. Closes GH-10936.
show more ...
|
#
f4409110 |
| 26-Feb-2023 |
George Peter Banyard |
Merge branch 'PHP-8.1' into PHP-8.2 * PHP-8.1: Fixed ValueError message in count_chars() Fixed ValueError message in substr_compare() The userland constants do not start wi
Merge branch 'PHP-8.1' into PHP-8.2 * PHP-8.1: Fixed ValueError message in count_chars() Fixed ValueError message in substr_compare() The userland constants do not start with PHP_
show more ...
|
#
adc5edd4 |
| 26-Feb-2023 |
George Peter Banyard |
Fixed ValueError message in count_chars() The value of the mode argument must be between 0 and 4 inclusive, not 1 and 4. |
#
21339701 |
| 26-Feb-2023 |
George Peter Banyard |
Fixed ValueError message in substr_compare() It used some random argument name instead of |
#
ec377c68 |
| 15-Jan-2023 |
George Peter Banyard |
Merge branch 'PHP-8.1' into PHP-8.2 * PHP-8.1: Fix wrong flags check for compression method in phar_object.c Fix missing check for xmlTextWriterEndElement Fix substr_replac
Merge branch 'PHP-8.1' into PHP-8.2 * PHP-8.1: Fix wrong flags check for compression method in phar_object.c Fix missing check for xmlTextWriterEndElement Fix substr_replace with slots in repl_ht being UNDEF
show more ...
|
#
4bbbe6d6 |
| 14-Jan-2023 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Fix substr_replace with slots in repl_ht being UNDEF The check that was supposed to check whether the array slot was UNDEF was wrong and never triggered. This resulted in a replacement w
Fix substr_replace with slots in repl_ht being UNDEF The check that was supposed to check whether the array slot was UNDEF was wrong and never triggered. This resulted in a replacement with the empty string or the wrong string instead of the correct one. The correct check pattern can be observed higher up in the function's code. Closes GH-10323 Signed-off-by: George Peter Banyard <girgias@php.net>
show more ...
|
#
e6c9b176 |
| 30-Dec-2022 |
George Peter Banyard |
Merge branch 'PHP-8.1' into PHP-8.2 * PHP-8.1: Fix GH-10187: Segfault in stripslashes() with arm64 Fix memory leak in posix_ttyname()
|
#
4c9375e5 |
| 30-Dec-2022 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Fix GH-10187: Segfault in stripslashes() with arm64 Closes GH-10188 Co-authored-by: todeveni <toni.viemero@iki.fi> Signed-off-by: George Peter Banyard <girgias@php.net> |
#
3227d04f |
| 08-Sep-2022 |
Máté Kocsis |
Declare ext/standard constants in stubs - part 7 (#9505) |
#
3a843f95 |
| 24-Jul-2022 |
dixyes |
Windows arm64 zend and standard extension support * Port zend_cpuid for windows arm64 * Fix zend_atomic windows arm64 build * Fix windows arm64 multiply * Enable arm64 neon for w
Windows arm64 zend and standard extension support * Port zend_cpuid for windows arm64 * Fix zend_atomic windows arm64 build * Fix windows arm64 multiply * Enable arm64 neon for windows in standard extension * Enable arm64 neon for windows in zend_hash.c * Workaround for msvc arm64 optimization bug Closes GH-9115.
show more ...
|
#
6ff662b2 |
| 28-Jul-2022 |
Nikita Popov |
Fix unused-but-set-variable warning in hebrev() |
#
5c693c77 |
| 26-Jul-2022 |
Tim Düsterhus |
Remove `->last_unsafe` from php_random_status (#9132) Whenever ->last_unsafe is set to `true` an exception has been thrown. Thus we can replace the check for `->last_unsafe` with a check
Remove `->last_unsafe` from php_random_status (#9132) Whenever ->last_unsafe is set to `true` an exception has been thrown. Thus we can replace the check for `->last_unsafe` with a check for `EG(exception)` which is a much more natural way to ommunicate an error up the chain.
show more ...
|
#
4d8dd8d2 |
| 19-Jul-2022 |
Go Kudo |
Implement Random Extension https://wiki.php.net/rfc/rng_extension https://wiki.php.net/rfc/random_extension_improvement |
#
e8092544 |
| 07-Jul-2022 |
Michael Voříšek |
Fix GH-8924 str_split of empty string must return empty array Closes #8945. |
#
4df3dd76 |
| 08-Jul-2022 |
Arnaud Le Blanc |
Reduce memory allocated by var_export, json_encode, serialize, and other (#8902) smart_str uses an over-allocated string to optimize for append operations. Functions that use smart_str tend
Reduce memory allocated by var_export, json_encode, serialize, and other (#8902) smart_str uses an over-allocated string to optimize for append operations. Functions that use smart_str tend to return the over-allocated string directly. This results in unnecessary memory usage, especially for small strings. The overhead can be up to 231 bytes for strings smaller than that, and 4095 for other strings. This can be avoided for strings smaller than `4096 - zend_string header size - 1` by reallocating the string. This change introduces `smart_str_trim_to_size()`, and calls it in `smart_str_extract()`. Functions that use `smart_str` are updated to use `smart_str_extract()`. Fixes GH-8896
show more ...
|
#
4ccf0b01 |
| 08-Jul-2022 |
George Peter Banyard |
Make php_fgetcsv() return a HashTale instead of in-out zval param (#8936) Also refactor what happens on an empty line to return NULL instead of setting the array to [NULL] which makes no des
Make php_fgetcsv() return a HashTale instead of in-out zval param (#8936) Also refactor what happens on an empty line to return NULL instead of setting the array to [NULL] which makes no design sense at all. However, as this is the current behaviour create a BC Shim inline function to recreate this weird HashTable in the functions which currently use this API
show more ...
|
#
ef287bfc |
| 23-Apr-2022 |
George Peter Banyard |
Minor refactoring of std string extension (#8196) Mainly using more appropriate types, early returns, and moving the happy path to the primary scope (failure path is guarded by ``UNEXPECTED`
Minor refactoring of std string extension (#8196) Mainly using more appropriate types, early returns, and moving the happy path to the primary scope (failure path is guarded by ``UNEXPECTED`` macros.
show more ...
|
#
5171cb43 |
| 20-May-2020 |
George Peter Banyard |
Fix [-Wundef] warnings in standard extension |
#
b9e895bc |
| 31-Mar-2022 |
Max Kellermann |
Replace memcmp() with zend_string functions (#8216) * ext/oci8: use zend_string_equals() Eliminate duplicate code. * main/php_variables: use zend_string_equals_literal()
Replace memcmp() with zend_string functions (#8216) * ext/oci8: use zend_string_equals() Eliminate duplicate code. * main/php_variables: use zend_string_equals_literal() Eliminate duplicate code. * Zend/zend_string: add zend_string_equals_cstr() Allows eliminating duplicate code. * Zend, ext/{opcache,standard}, main/output: use zend_string_equals_cstr() Eliminate duplicate code. * Zend/zend_string: add zend_string_starts_with() * ext/{opcache,phar,spl,standard}: use zend_string_starts_with() This adds missing length checks to several callers, e.g. in cache_script_in_shared_memory(). This is important when the zend_string is shorter than the string parameter, when memcmp() happens to check backwards; this can result in an out-of-bounds memory access.
show more ...
|
#
e948d3c9 |
| 23-Mar-2022 |
George Peter Banyard |
Use zend_string_to(upper|lower)() API directly |
#
71a110fc |
| 13-Mar-2022 |
George Peter Banyard |
Remove strnatcmp_ex() wrappers These APIs always returned SUCCESS. Closes GH-8195 |
#
dd62ec06 |
| 13-Mar-2022 |
George Peter Banyard |
Refactor php_next_utf8_char() to use zend_result |