History log of /PHP-7.3/ext/standard/array.c (Results 1 – 25 of 848)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# da786a22 05-Aug-2020 Nikita Popov

Fixed bug #79930

We're inserting src_zval, so that's what we should addref.


Revision tags: php-7.3.13RC1, php-7.2.26RC1, php-7.4.0, php-7.2.25, php-7.3.12, php-7.4.0RC6
# 5fa6dcd9 07-Nov-2019 Nikita Popov

Fixed bug #78759

Handle INDIRECT values in array.


Revision tags: php-7.3.12RC1, php-7.2.25RC1, php-7.4.0RC5, php-7.1.33, php-7.2.24, php-7.3.11, php-7.4.0RC4, php-7.3.11RC1, php-7.2.24RC1, php-7.4.0RC3, php-7.2.23, php-7.3.10, php-7.4.0RC2, php-7.2.23RC1, php-7.3.10RC1, php-7.4.0RC1, php-7.1.32, php-7.2.22, php-7.3.9, php-7.4.0beta4, php-7.2.22RC1, php-7.3.9RC1, php-7.4.0beta2, php-7.1.31, php-7.2.21, php-7.3.8, php-7.4.0beta1, php-7.2.21RC1, php-7.3.8RC1, php-7.4.0alpha3, php-7.3.7, php-7.2.20, php-7.4.0alpha2, php-7.3.7RC3, php-7.3.7RC2, php-7.2.20RC2, php-7.4.0alpha1, php-7.3.7RC1, php-7.2.20RC1
# 83cdb89f 07-Jun-2019 Dmitry Stogov

Fixed bug #77135 (Extract with EXTR_SKIP should skip $this)


Revision tags: php-7.2.19, php-7.3.6, php-7.1.30, php-7.2.19RC1, php-7.3.6RC1, php-7.1.29, php-7.2.18, php-7.3.5
# cedee440 23-Apr-2019 Nikita Popov

Fixed bug #77931


Revision tags: php-7.2.18RC1
# f9a755d0 16-Apr-2019 Nikita Popov

Fix HT flags copying wrt iterator count

HT_FLAGS() includes the full flag word, including the iterator
count. When we're fully reassigning it, we need to make sure that
we either rea

Fix HT flags copying wrt iterator count

HT_FLAGS() includes the full flag word, including the iterator
count. When we're fully reassigning it, we need to make sure that
we either really do want to copy the iterator count (as in some
cases in array.c) or we need to mask only the actual flag byte.

Add an assert to hash_iterators_del() to make sure the iterator
count is non-zero (which is how I ran into this) and make sure that
the iterator count is correctly preserved during array splicing.

show more ...


Revision tags: php-7.3.5RC1, php-7.2.17, php-7.3.4, php-7.1.28
# e97577ed 25-Mar-2019 Nikita Popov

Fixed bug #77793

By making sure that we always first increment the refcount of the
new value before we destroy the old one.


Revision tags: php-7.3.4RC1, php-7.2.17RC1, php-7.1.27, php-7.3.3, php-7.2.16
# 9ad9cc71 28-Feb-2019 Nikita Popov

Fixed bug #77669


Revision tags: php-7.3.3RC1, php-7.2.16RC1, php-7.2.15, php-7.3.2, php-7.2.15RC1, php-7.3.2RC1, php-5.6.40, php-7.1.26, php-7.3.1, php-7.2.14
# 8ebae846 02-Jan-2019 Xinchen Hui

Fixed bug #77395 (segfault about array_multisort)


Revision tags: php-7.2.14RC1, php-7.3.1RC1, php-5.6.39, php-7.1.25, php-7.2.13, php-7.0.33, php-7.3.0, php-7.1.25RC1, php-7.2.13RC1, php-7.3.0RC6, php-7.1.24, php-7.2.12, php-7.3.0RC5
# 9afce019 01-Nov-2018 Zeev Suraski

Future-proof email addresses


Revision tags: php-7.1.24RC1, php-7.2.12RC1, php-7.3.0RC4, php-7.1.23, php-7.2.11, php-7.3.0RC3, php-7.1.23RC1, php-7.2.11RC1, php-7.3.0RC2, php-5.6.38, php-7.1.22, php-7.3.0RC1, php-7.2.10, php-7.0.32, php-7.1.22RC1, php-7.3.0beta3, php-7.2.10RC1, php-7.1.21, php-7.2.9, php-7.3.0beta2, php-7.1.21RC1, php-7.3.0beta1, php-7.2.9RC1, php-5.6.37, php-7.1.20, php-7.3.0alpha4, php-7.0.31, php-7.2.8, php-7.1.20RC1, php-7.2.8RC1, php-7.3.0alpha3, php-7.3.0alpha2, php-7.1.19, php-7.2.7, php-7.1.19RC1, php-7.3.0alpha1, php-7.2.7RC1, php-7.1.18, php-7.2.6, php-7.2.6RC1, php-7.1.18RC1, php-5.6.36, php-7.2.5, php-7.1.17, php-7.0.30, php-7.1.17RC1, php-7.2.5RC1, php-5.6.35, php-7.0.29, php-7.2.4, php-7.1.16, php-7.1.16RC1, php-7.2.4RC1, php-7.1.15, php-5.6.34, php-7.2.3, php-7.0.28, php-7.2.3RC1, php-7.1.15RC1, php-7.1.14, php-7.2.2, php-7.1.14RC1, php-7.2.2RC1, php-7.1.13, php-5.6.33, php-7.2.1, php-7.0.27, php-7.2.1RC1, php-7.1.13RC1, php-7.0.27RC1, php-7.2.0, php-7.1.12
# ab6c45f5 22-Nov-2017 Manabu Matsui

Fix bug #75533: array_reduce is slow when $carry is large array


# 70b2fca2 22-Aug-2018 Christoph M. Becker

Fix #76778: array_reduce leaks memory if callback throws exception

We have to release the result variable in the error case, too.


# efbf846f 05-Aug-2018 Gabriel Caruso

Make array parsing parameters error messages consistency with ZPP failure


# 2b1d79ce 07-Aug-2018 Xinchen Hui

Fixed bug #76713 (Segmentation fault caused by property corruption)


# c42f0ba4 31-Jul-2018 Dmitry Stogov

Removed useless IS_UNDEF checks


# 8d3f8ca1 03-Jul-2018 Peter Kokot

Remove unused Git attributes ident

The $Id$ keywords were used in Subversion where they can be substituted
with filename, last revision number change, last changed date, and last
use

Remove unused Git attributes ident

The $Id$ keywords were used in Subversion where they can be substituted
with filename, last revision number change, last changed date, and last
user who changed it.

In Git this functionality is different and can be done with Git attribute
ident. These need to be defined manually for each file in the
.gitattributes file and are afterwards replaced with 40-character
hexadecimal blob object name which is based only on the particular file
contents.

This patch simplifies handling of $Id$ keywords by removing them since
they are not used anymore.

show more ...


# 1638a6e1 24-Jul-2018 Xinchen Hui

Give a meaningful name


# 4aada399 24-Jul-2018 Xinchen Hui

Micro-optmization


# 38d97557 24-Jul-2018 Xinchen Hui

Fixed bug #68553 (array_column: null values in $index_key become incrementing keys in result)


# d4e60a1f 23-Jul-2018 Dmitry Stogov

Avoid code duplication


# 9f957fd3 17-Jul-2018 Christoph M. Becker

Improve implementation of array_key_first() and array_key_last()

Firstly, we must not separate the $stack argument for performance
reasons. Secondly, we prefer `Z_ARRVAL_P` over `HASH_O

Improve implementation of array_key_first() and array_key_last()

Firstly, we must not separate the $stack argument for performance
reasons. Secondly, we prefer `Z_ARRVAL_P` over `HASH_OF` to clarify
our intention.

Thanks to Nikita, for catching these issues!

show more ...


# 50516a6e 17-Jul-2018 Enno Woortmann

Add implementation and tests for new methods - array_key_first(array $a) Returns the key of the first element or null - array_key_last(array $a) Returns the key of the last element or null


# 67b4c337 09-Jul-2018 Dmitry Stogov

Uze ZVAL_COPY_DEREF() instead of ZVAL_DEREF() and ZVAL_COPY()


# af341213 04-Jul-2018 Dmitry Stogov

se zval_ptr_dtor_str() instead of zend_string_release_ex(Z_STR(*), 0)


# e080fb6d 03-Jul-2018 Nikita Popov

Do not continue extract()ing after an exception has been thrown

Make behavior consistent with a loop of normal assignments.

This is not a big issue now, because $this is the only ca

Do not continue extract()ing after an exception has been thrown

Make behavior consistent with a loop of normal assignments.

This is not a big issue now, because $this is the only case that
may generate an error. However typed references introduce additional
error conditions, which would be silenced by this kind of behavior.

show more ...


# 6531719d 21-Jun-2018 Xinchen Hui

Fixed bug #76505 (array_merge_recursive() is duplicating sub-array keys)


12345678910>>...34