#
8f60309a |
| 26-Oct-2024 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Fix GH-16589: UAF in SplDoublyLinked->serialize() Closes GH-16611.
|
#
8820a103 |
| 16-Oct-2024 |
Ilija Tovilo |
Fix uaf in SplDoublyLinkedList::offsetSet() Write to the new offset before calling the destructor of the previous value. Fixes GH-16464 Closes GH-16466
|
#
d1fc0017 |
| 14-Sep-2022 |
Bob Weinand |
Revert "Fix compilation on MacOS" This reverts commit 800c6672e57a01d68dcaba36f8f7d65c6871aafc. Reverted along with a01dd9fedaecd2e5b95bc5c2e8d6542116addeae. |
#
800c6672 |
| 24-Aug-2022 |
Bob Weinand |
Fix compilation on MacOS memrchr has an always available equivalent under the name of zend_memrchr. Signed-off-by: Bob Weinand <bobwei9@hotmail.com> |
#
b73f139c |
| 02-Aug-2022 |
Máté Kocsis |
Declare ext/spl constants in stubs (#9226) |
#
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 ...
|
#
3b92a966 |
| 25-Jun-2022 |
Ilija Tovilo |
Convert return type of various object handlers from int to zend_result (#8755) |
#
cfc38a60 |
| 13-Apr-2022 |
George Peter Banyard |
SPL: minor refactoring (#8341) Use more appropriate types and return macros |
#
48e07076 |
| 29-Mar-2022 |
Zhou Qingyang |
spl_ptr_llist_offset() is not supposed to return NULL here This issue has found by a static analyzer. Closes GH-8272. |
#
bc9d6044 |
| 24-Nov-2021 |
Remi Collet |
Merge branch 'PHP-8.1' * PHP-8.1: fix [-Wstrict-prototypes] buid warnings
|
#
ef2fd0e5 |
| 24-Nov-2021 |
Remi Collet |
fix [-Wstrict-prototypes] buid warnings |
#
3fd252e3 |
| 24-Sep-2021 |
Nikita Popov |
Remove unnecessary zend_user_iterator use in spl_dllist_it We don't make use of any functionality of zend_user_iterator, a plain zend_object_iterator will do. |
#
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 ...
|
#
9d2a466c |
| 09-Jun-2021 |
Nikita Popov |
Remove explicit assignments of zend_objects_destroy_object This is the default handler, no need to set it explicitly. This makes it easier to see which objects really have a custom dtor_
Remove explicit assignments of zend_objects_destroy_object This is the default handler, no need to set it explicitly. This makes it easier to see which objects really have a custom dtor_obj.
show more ...
|
#
01b3fc03 |
| 06-May-2021 |
KsaR |
Update http->https in license (#6945) 1. Update: http://www.php.net/license/3_01.txt to https, as there is anyway server header "Location:" to https. 2. Update few license 3.0 to 3.01 as
Update http->https in license (#6945) 1. Update: http://www.php.net/license/3_01.txt to https, as there is anyway server header "Location:" to https. 2. Update few license 3.0 to 3.01 as 3.0 states "php 5.1.1, 4.1.1, and earlier". 3. In some license comments is "at through the world-wide-web" while most is without "at", so deleted. 4. fixed indentation in some files before |
show more ...
|
#
71cbef78 |
| 19-Apr-2021 |
Nikita Popov |
Fixed bug #80111 Remove traverse_pointer before destroying the element contents. |
#
044de836 |
| 19-Apr-2021 |
Nikita Popov |
Prefer ZVAL_COPY Instead of ZVAL_COPY_VALUE + Z_TRY_ADDREF. Also fix another leak in SplDoublyLinkedList::add(), the push case was leaking as well. |
#
497fadca |
| 19-Apr-2021 |
Nikita Popov |
Fix leak in SplDoublyLinkedList::add() |
#
02db708c |
| 19-Apr-2021 |
Nikita Popov |
Remove generic dtor+ctor from SPL dllist This is only ever used with zvals. It was particularly confusing because a lot of code mixed the generic code with zval specific code. |
#
4f4c031f |
| 18-Feb-2021 |
Máté Kocsis |
Generate ext/spl class entries from stubs Closes GH-6709 |
#
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 ...
|
#
d8b22c56 |
| 12-Jan-2021 |
Nikita Popov |
Fix INDIRECT elements leaked by SPL __serialize implementations |
#
9affbef0 |
| 11-Sep-2020 |
George Peter Banyard |
Use normal error in SPL for 'An iterator cannot be used with foreach by reference' |
#
61c299fe |
| 03-Sep-2020 |
George Peter Banyard |
Error promotions in SPL Warning to Error promotion and a Notice to Warning promotion to align with the behaviour specified in the Reclassify Engine Warnings RFC. Closes GH-6072 |
#
f7fbc633 |
| 14-Aug-2020 |
Máté Kocsis |
Add more precise type info for stubs Closes GH-6005 |