#
20638dba |
| 24-Jun-2022 |
George Peter Banyard |
Use the passed 'this' pointer instead of ZEND_THIS (#8854) Removes the horrible hack usage of defining execute_data to be able to use ZEND_THING
|
Revision tags: php-8.1.8RC1, php-8.2.0alpha2 |
|
#
7cd8879d |
| 21-Jun-2022 |
George Peter Banyard |
Refactor spl_filesystem_object_get_path() to return zend_string*
|
Revision tags: php-8.0.21RC1 |
|
#
623fbfe7 |
| 20-Jun-2022 |
George Peter Banyard |
Remove Z_SPLFILESYSTEM_P macro Remove one level of macro expansion hell
|
#
4d43241e |
| 20-Jun-2022 |
George Peter Banyard |
Move some private SPL Directory elements out of the header
|
#
d5d0b07b |
| 20-Jun-2022 |
George Peter Banyard |
Early return in spl_filesystem_file_rewind()
|
Revision tags: php-8.0.20, php-8.1.7, php-8.2.0alpha1, php-7.4.30 |
|
#
a493c944 |
| 27-May-2022 |
George Peter Banyard |
Use bool for silent parameter in SPL directory.c
|
#
6bd01751 |
| 20-Jun-2022 |
cmp |
Prevent fclose on underlying SplFileObject file stream. (#7920)
|
#
6f87a5c6 |
| 27-May-2022 |
George Peter Banyard |
Fix GH-8563 Different results for seek() on SplFileObject and SplTempFileObject With memory streams if we get a NULL buffer we must not instantiate an empty line
|
#
dbf1cafd |
| 09-Jun-2022 |
George Peter Banyard |
Remove internal usage of SplFileInfo::_bad_state_ex() method (#8318) * Use standard VM handling instead * Deprecate the method as it is now useless
|
Revision tags: php-8.1.7RC1, php-8.0.20RC1, php-8.1.6, php-8.0.19, php-8.1.6RC1, php-8.0.19RC1, php-8.0.18, php-8.1.5, php-7.4.29 |
|
#
660ef91f |
| 07-Apr-2022 |
George Peter Banyard |
Fix GH-8273: SplFileObject: key() returns wrong value
|
#
6186ecd4 |
| 07-Apr-2022 |
George Peter Banyard |
Fix GH-8273: SplFileObject: key() returns wrong value
|
#
2ac5948f |
| 08-Apr-2022 |
George Peter Banyard |
Refactor SplFileObject CSV methods (#8317) Use early returns, which fixes ValueError order of arguments and flattens the code
|
#
3931d726 |
| 08-Apr-2022 |
George Peter Banyard |
Add missing ZPP checks in SPL Directory (#8325) Co-authored-by: Máté Kocsis <kocsismate@woohoolabs.com>
|
#
89227060 |
| 07-Apr-2022 |
George Peter Banyard |
Minor refactoring of spl_directory.c Using more appropriate types Fix comments Early returns
|
Revision tags: php-8.1.5RC1 |
|
#
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 ...
|
Revision tags: php-8.0.18RC1, php-8.1.4, php-8.0.17, php-8.1.4RC1, php-8.0.17RC1 |
|
#
1d9a1f9b |
| 28-Feb-2022 |
Christoph M. Becker |
Fix GH-8121: SplFileObject - seek and key with csv file inconsistent First, we must not free the current line before we call `spl_filesystem_file_read_csv()`, because then the `current_l
Fix GH-8121: SplFileObject - seek and key with csv file inconsistent First, we must not free the current line before we call `spl_filesystem_file_read_csv()`, because then the `current_line` will not be properly updated. Since the EOF check is superfluous here, we move that part of the code to the branch for subtypes. This issue has been introduced by the fix for bug 75917. Second, we only must increase the `current_line` if we're not reading ahead. This issue has been introduced by the fix for bug 62004. Closes GH-8138.
show more ...
|
Revision tags: 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 |
|
#
0ed39ed8 |
| 22-Dec-2021 |
Christoph M. Becker |
Fix GH-7809: Cloning a faked SplFileInfo object may segfault While the `path` is not supposed to be `NULL` for normal operation, it is possible to create `SplFileInfo` objects where that
Fix GH-7809: Cloning a faked SplFileInfo object may segfault While the `path` is not supposed to be `NULL` for normal operation, it is possible to create `SplFileInfo` objects where that is the case, and we must not follow the null pointer. Closes GH-7814.
show more ...
|
Revision tags: php-8.0.14, php-8.1.1, php-7.4.27, php-8.1.1RC1, php-8.0.14RC1, php-7.4.27RC1 |
|
#
daf79e2d |
| 30-Nov-2021 |
Aliaksandr Bystry |
Fix #75917: SplFileObject::seek broken with CSV flags Closes GH-7697.
|
Revision tags: php-8.1.0, php-8.0.13, php-7.4.26, php-7.3.33, php-8.1.0RC6 |
|
#
90b7bde6 |
| 03-Nov-2021 |
Dmitry Stogov |
Use more compact representation for packed arrays. - for packed arrays we store just an array of zvals without keys. - the elements of packed array are accessible throuf as ht->arPacked[
Use more compact representation for packed arrays. - for packed arrays we store just an array of zvals without keys. - the elements of packed array are accessible throuf as ht->arPacked[i] instead of ht->arData[i] - in addition to general ZEND_HASH_FOREACH_* macros, we introduced similar familied for packed (ZEND_HASH_PACKED_FORECH_*) and real hashes (ZEND_HASH_MAP_FOREACH_*) - introduced an additional family of macros to access elements of array (packed or real hashes) ZEND_ARRAY_ELEMET_SIZE, ZEND_ARRAY_ELEMET_EX, ZEND_ARRAY_ELEMET, ZEND_ARRAY_NEXT_ELEMENT, ZEND_ARRAY_PREV_ELEMENT - zend_hash_minmax() prototype was changed to compare only values Because of smaller data set, this patch may show performance improvement on some apps and benchmarks that use packed arrays. (~1% on PHP-Parser) TODO: - sapi/phpdbg needs special support for packed arrays (WATCH_ON_BUCKET). - zend_hash_sort_ex() may require converting packed arrays to hash.
show more ...
|
Revision tags: 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 |
|
#
ee5711de |
| 27-Sep-2021 |
Christoph M. Becker |
Fix #81477: LimitIterator + SplFileObject regression in 8.0.1 We must not free the read line, if the `READ_AHEAD` flag is set. This also restores the expectations of SplFileObject_next_
Fix #81477: LimitIterator + SplFileObject regression in 8.0.1 We must not free the read line, if the `READ_AHEAD` flag is set. This also restores the expectations of SplFileObject_next_variation002.phpt. Closes GH-7518.
show more ...
|
#
088e5478 |
| 24-Sep-2021 |
Nikita Popov |
Fix FileSystemIterator without SKIP_DOTS There were two separate bugs here: * The get_iterator implementation did not match the Iterator implementation. In particular, get_iterat
Fix FileSystemIterator without SKIP_DOTS There were two separate bugs here: * The get_iterator implementation did not match the Iterator implementation. In particular, get_iterator did not respect SKIP_DOTS. * The constructor did not honor an explicitly omitted SKIP_DOTS flag. It could still be unset through setFlags() though.
show more ...
|
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 |
|
#
6b1337b7 |
| 30-Jul-2021 |
Kamil Tekiela |
Fix typo [no-ci]
|
#
d7b77a40 |
| 30-Jul-2021 |
Andrii Dembitskyi |
Fix SplFileObject::fseek() method description (#7321)
|
Revision tags: php-8.0.9, php-7.4.22, php-8.1.0beta1 |
|
#
814a9327 |
| 16-Jul-2021 |
Nikita Popov |
Add ZEND_ACC_NOT_SERIALIZABLE flag This prevents serialization and unserialization of a class and its children in a way that does not depend on the zend_class_serialize_deny and zend
Add ZEND_ACC_NOT_SERIALIZABLE flag This prevents serialization and unserialization of a class and its children in a way that does not depend on the zend_class_serialize_deny and zend_class_unserialize_deny handlers that will be going away in PHP 9 together with the Serializable interface. In stubs, `@not-serializable` can be used to set this flag. This patch only uses the new flag for a handful of Zend classes, converting the remainder is left for later. Closes GH-7249. Fixes bug #81111.
show more ...
|
Revision tags: php-7.4.22RC1, php-8.0.9RC1 |
|
#
c6357b80 |
| 13-Jul-2021 |
Máté Kocsis |
Declare tentative return types for ext/spl - part 1 (#7115)
|