History log of /PHP-8.0/ext/spl/spl_array.c (Results 1 – 25 of 424)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1762a879 14-Apr-2022 Christoph M. Becker

Fix GH-8366: ArrayIterator may leak when calling __construct()

When we detach an iterator, we also have to delete it.

Closes GH-8374.


# bcefc31e4 06-Jul-2021 Nikita Popov

Fix ArrayObject::exchangeArray() return type

This method cannot return null.


# 957cb13a 01-Mar-2021 Dmitry Stogov

Fixed bug #80802: (zend_jit_fetch_indirect_var assert failure with tracing JIT)


# c34c5234 11-Feb-2021 Nikita Popov

Fixed bug #80719


Revision tags: 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
# bfe7a116 22-Oct-2020 Nikita Popov

Properly validate ArrayObject::asort() argument


Revision tags: php-8.0.0RC2, php-7.4.12RC1, php-7.3.24RC1
# 2c1b5c43 01-Oct-2020 Nikita Popov

Support GC for AppendIterator

This also requires adding GC support for ArrayIterator internal
iterators.


Revision tags: php-7.2.34, php-8.0.0rc1, php-7.4.11, php-7.3.23, php-8.0.0beta4, php-7.4.11RC1, php-7.3.23RC1
# 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


Revision tags: php-8.0.0beta3, php-7.4.10, php-7.3.22, php-8.0.0beta2, php-7.3.22RC1, php-7.4.10RC1
# f7fbc633 14-Aug-2020 Máté Kocsis

Add more precise type info for stubs

Closes GH-6005


# f965e200 28-Aug-2020 Nikita Popov

Promote ArrayObject modification during sorting to Error exception


Revision tags: php-8.0.0beta1, php-7.4.9, php-7.2.33, php-7.3.21
# c48b745f 03-Aug-2020 Nikita Popov

Promote "undefined array key" notice to warning

This implements the last remaining part of the
https://wiki.php.net/rfc/engine_warnings RFC.

Closes GH-5927.


# 7a4b594c 03-Aug-2020 Nikita Popov

Convert SPL illegal offset type into TypeError

Make this consistent with the corresponding engine behavior.
Also adjust the messages to match.


# d65d3f52 24-Jul-2020 Nikita Popov

Fix bug #79108

Don't expose references in debug_backtrace() or exception traces.
This is regardless of whether the argument is by-reference or not.

As a side-effect of this chan

Fix bug #79108

Don't expose references in debug_backtrace() or exception traces.
This is regardless of whether the argument is by-reference or not.

As a side-effect of this change, exception traces may now acquire
the interior value of a reference, which may be unexpected for
some internal functions. This is what necessitated the change in
the spl_array sort implementation.

show more ...


Revision tags: php-8.0.0alpha3, php-7.4.9RC1, php-7.3.21RC1
# 1cba7364 17-Jul-2020 Nikita Popov

Throw correct exception from ArrayObject sort methods

Let normal zpp throw ArgumentCountErrors.


Revision tags: php-7.4.8, php-7.2.32, php-8.0.0alpha2, php-7.3.20, php-8.0.0alpha1, php-7.4.8RC1, php-7.3.20RC1, php-7.4.7, php-7.3.19
# d30cd7d7 26-May-2020 Máté Kocsis

Review the usage of apostrophes in error messages

Closes GH-5590


# 2b5de6f8 01-Jul-2020 Max Semenik

Remove proto comments from C files

Closes GH-5758


# 312201dc 01-Jul-2020 Nikita Popov

Add get_gc handle for object iterators

Optional handler with the same semantics as the object handler.


# 15846ff1 17-Jun-2020 Nikita Popov

Add ZVAL_OBJ_COPY macro

For the common ZVAL_OBJ + GC_ADDREF pattern.
This mirrors the existing ZVAL_STR_COPY API.


Revision tags: php-7.4.7RC1, php-7.3.19RC1, php-7.4.6, php-7.2.31, php-7.4.6RC1, php-7.3.18RC1
# d7f7080b 25-Apr-2020 Máté Kocsis

Generate methods entries from stubs for ext/spl

Closes GH-5458


# c36b9e93 22-Apr-2020 Alex Dowad

Remove unneeded prototype for spl_array_get_iterator


# 0d11d373 15-Apr-2020 Alex Dowad

Fix bug #67369 ArrayObject serializatino drops the iterator class

When ArrayObject is round-tripped through serialize() and unserialize(),
it forgets any iterator class name which was se

Fix bug #67369 ArrayObject serializatino drops the iterator class

When ArrayObject is round-tripped through serialize() and unserialize(),
it forgets any iterator class name which was set using ::setIteratorClass().
Fix that.

show more ...


Revision tags: php-7.2.30, php-7.4.5, php-7.3.17
# 22a077b6 06-Apr-2020 Christoph M. Becker

Fix #69264: __debugInfo() ignored while extending SPL classes

We actually implement `::__debugInfo()` and drop the `get_debug_info()`
handlers of all relevant SPL classes. This is clean

Fix #69264: __debugInfo() ignored while extending SPL classes

We actually implement `::__debugInfo()` and drop the `get_debug_info()`
handlers of all relevant SPL classes. This is cleaner and gives more
flexibility regarding overriding the functionality in descendant
classes.

show more ...


Revision tags: php-7.4.5RC1, php-7.3.17RC1, php-7.3.18, php-7.4.4, php-7.2.29, php-7.3.16
# d2b902f1 06-Mar-2020 Máté Kocsis

Add some stubs for SPL

Closes GH-5245


Revision tags: php-7.4.4RC1, php-7.3.16RC1, php-7.4.3, php-7.2.28, php-7.3.15RC1, php-7.4.3RC1, php-7.3.15, php-7.2.27, php-7.4.2, php-7.3.14, php-7.3.14RC1, php-7.4.2RC1
# b7d2882f 03-Jan-2020 Máté Kocsis

Use zend_parse_parameters_none() instead of zend_parse_parameters_none_throw()


# 01a50778 02-Jan-2020 Máté Kocsis

Use RETURN_THROWS() after zend_throw_exception() in most of the extensions


12345678910>>...17