#
b3a56bd5 |
| 21-May-2024 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Fix GH-14290: Member access within null pointer in extension spl php_pcre_replace_impl() can fail and return NULL. We should take that error condition into account. Because other failure
Fix GH-14290: Member access within null pointer in extension spl php_pcre_replace_impl() can fail and return NULL. We should take that error condition into account. Because other failures return false, we return false here as well. At first, I also thought there was a potential memory leak in the error check of replacement_str, but found that the error condition can never trigger, so replace that with an assertion. Closes GH-14292.
show more ...
|
#
5855bdcd |
| 20-Apr-2023 |
Ilija Tovilo |
Fix reference returned from CallbackFilterIterator::accept() Fixes oss-fuzz #58181
|
#
9d5f2f13 |
| 20-Mar-2023 |
Ilija Tovilo |
Use new ZSTR_INIT_LITERAL macro (#10879)
|
#
2b15061f |
| 01-Mar-2023 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Use zend_result in ext/spl where appropriate (#10734) * Convert functions in spl_heap to return zend_result * Convert functions in spl_iterators to return zend_result
|
#
90047253 |
| 26-Feb-2023 |
Marcos Marcolin <48370677+marcosmarcolin@users.noreply.github.com> |
chore: standardize the visibility of functions. (#10708) Co-authored-by: Marcos Marcolin <marcos@ixcsoft.com.br>
|
#
32d3cae1 |
| 22-Nov-2022 |
George Peter Banyard |
Handle trampolines correctly in new FCC API + usages (#9877)
|
#
8d5d3fd0 |
| 27-Oct-2022 |
George Peter Banyard |
Refactor SPL Callback filter to only use FCC
|
#
66661ae6 |
| 11-Oct-2022 |
George Peter Banyard |
Remove most usages of zend_fcall_info_args() This reallocates the PHP array when one can just use the named_params fields to pass the positional arguments instead. Only usage of zen
Remove most usages of zend_fcall_info_args() This reallocates the PHP array when one can just use the named_params fields to pass the positional arguments instead. Only usage of zend_fcall_info_args(_ex) remains in PDO.
show more ...
|
#
1ea1b631 |
| 21-Oct-2022 |
George Peter Banyard |
Use zend_call_function_with_return_value() in SPL iterators
|
#
a01dd9fe |
| 14-Sep-2022 |
Bob Weinand |
Revert "Port all internally used classes to use default_object_handlers" This reverts commit 94ee4f9834743ca74f6c9653863273277ce6c61a. The commit was a bit too late to be included i
Revert "Port all internally used classes to use default_object_handlers" This reverts commit 94ee4f9834743ca74f6c9653863273277ce6c61a. The commit was a bit too late to be included in PHP 8.2 RC1. Given it's a massive ABI break, we decide to postpone the change to PHP 8.3.
show more ...
|
Revision tags: php-8.2.0RC1, php-8.1.10, php-8.0.23 |
|
#
94ee4f98 |
| 24-Aug-2022 |
Bob Weinand |
Port all internally used classes to use default_object_handlers Signed-off-by: Bob Weinand <bobwei9@hotmail.com>
|
Revision tags: php-8.0.23RC1, php-8.1.10RC1, php-8.2.0beta3 |
|
#
b73f139c |
| 02-Aug-2022 |
Máté Kocsis |
Declare ext/spl constants in stubs (#9226)
|
Revision tags: php-8.2.0beta2, php-8.1.9, php-8.0.22, php-8.1.9RC1, php-8.2.0beta1 |
|
#
7ae7df5b |
| 19-Jul-2022 |
Tim Düsterhus |
RFC: Make the `iterator_*()` family accept all `iterable`s (#8819) https://wiki.php.net/rfc/iterator_xyz_accept_array
|
Revision tags: php-8.0.22RC1, php-8.0.21, php-8.1.8, php-8.2.0alpha3, 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 |
|
#
ad7b9f4e |
| 27-Apr-2022 |
Christoph M. Becker |
Fix GH-8235: iterator_count() may run indefinitely We need to prevent integer overflow to eventually stop the iteration. A test case doesn't appear sensible for this, because even o
Fix GH-8235: iterator_count() may run indefinitely We need to prevent integer overflow to eventually stop the iteration. A test case doesn't appear sensible for this, because even on 32bit architectures a respective test easily runs for a few minutes. Closes GH-8447.
show more ...
|
Revision tags: php-8.1.6RC1, php-8.0.19RC1 |
|
#
cfc38a60 |
| 13-Apr-2022 |
George Peter Banyard |
SPL: minor refactoring (#8341) Use more appropriate types and return macros
|
Revision tags: php-8.0.18, php-8.1.5, php-7.4.29 |
|
#
72fb511d |
| 01-Apr-2022 |
Arnaud Le Blanc |
Stop including php_pcre.h from spl_iterators.h This fixes GH-7774. spl_iterators.h was including php_pcre.h so that one object intern struct could reference a pcre_cache_entry.
Stop including php_pcre.h from spl_iterators.h This fixes GH-7774. spl_iterators.h was including php_pcre.h so that one object intern struct could reference a pcre_cache_entry. These object interns should not be public, so they can be moved out of the header file. This change moves the object interns ouf of spl_iterators.h so that php_pcre.h doesn't need to be included from there.
show more ...
|
Revision tags: 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 |
|
#
3adbafee |
| 24-Sep-2021 |
Nikita Popov |
Fix leak when iterating uninitialized RecursiveIteratorIterator
|
Revision tags: 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, 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 |
|
#
6d505d44 |
| 22-Jul-2021 |
Nikita Popov |
Add RETURN/RETVAL_COPY_DEREF() macros These were missing from the set... I think quite a few of these usages don't actually need the DEREF, but I've just kept things as is for n
Add RETURN/RETVAL_COPY_DEREF() macros These were missing from the set... I think quite a few of these usages don't actually need the DEREF, but I've just kept things as is for now.
show more ...
|
Revision tags: php-8.1.0beta1 |
|
#
b9ae73ee |
| 15-Jul-2021 |
Nikita Popov |
Fix RecursiveIteratorIterator segfault for invalid aggregate The code was assuming that the returned value is an object. Reuse the logic from IteratorIterator.
|
#
11f62c98 |
| 15-Jul-2021 |
Nikita Popov |
Revert "IteratorIterator::getInnerIterator() can't return null" This reverts commit c252420d0842b1f7ea3891695bb6de3c9ec9a57c. This (currently) does not hold for invalid AppendIterat
Revert "IteratorIterator::getInnerIterator() can't return null" This reverts commit c252420d0842b1f7ea3891695bb6de3c9ec9a57c. This (currently) does not hold for invalid AppendIterators, revert for now.
show more ...
|
#
c252420d |
| 15-Jul-2021 |
Nikita Popov |
IteratorIterator::getInnerIterator() can't return null If ther IteratorIterator is initialized (which we check), then zobject cannot be undef and the return value cannot be null.
|
Revision tags: php-7.4.22RC1, php-8.0.9RC1, php-8.1.0alpha3 |
|
#
f7b1238f |
| 02-Jul-2021 |
Nikita Popov |
Handle out of order destruction of RecursiveIteratorIterator
|
#
c2a8934b |
| 02-Jul-2021 |
Nikita Popov |
Fix typo in RecursiveIteratorIterator get_gc handler
|
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 |
|
#
9c18138a |
| 09-Jun-2021 |
Nikita Popov |
Support GC for RecursiveIteratorIterator And move its dtor_obj handler into free_obj, so that cycle leaks get automatically detected.
|