History log of /php-src/ext/standard/array.c (Results 226 – 250 of 1122)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 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

# 3ca9aaf2 24-Jul-2018 Xinchen Hui

Merge branch 'PHP-7.2'

* PHP-7.2:
Update NEWs
Fixed bug #68553 (array_column: null values in $index_key become incrementing keys in result)

Conflicts:
ext/st

Merge branch 'PHP-7.2'

* PHP-7.2:
Update NEWs
Fixed bug #68553 (array_column: null values in $index_key become incrementing keys in result)

Conflicts:
ext/standard/array.c

show more ...


# 2a181b5e 24-Jul-2018 Xinchen Hui

Merge branch 'PHP-7.1' into PHP-7.2

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


# 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 ...

# 8b2f4072 21-Jun-2018 Xinchen Hui

Merge branch 'PHP-7.2'

* PHP-7.2:
Update NEWS
Fixed bug #76505 (array_merge_recursive() is duplicating sub-array keys)


# 939e1095 21-Jun-2018 Xinchen Hui

Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
Fixed bug #76505 (array_merge_recursive() is duplicating sub-array keys)


# 6531719d 21-Jun-2018 Xinchen Hui

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

# fc775f69 30-Mar-2018 Gabriel Caruso

Report unknown variables passed to compact()

# 777187cb 09-Jun-2018 Nikita Popov

Don't use UNREFs during array operations

Perform DEREFs instead. We were already doing this in some, but not
all places.

While UNREFs are supposed to be transparent, in practice

Don't use UNREFs during array operations

Perform DEREFs instead. We were already doing this in some, but not
all places.

While UNREFs are supposed to be transparent, in practice they have
rare observable side effects. Calling array_merge() on an array
should never change how that array behaves.

show more ...

# 0a0f6c49 05-Jun-2018 Xinchen Hui

Merge branch 'PHP-7.2'

* PHP-7.2:
Fixed bug #76410 (SIGV in zend_mm_alloc_small)
Fix bug #76390 - do not allow invalid strings in range()

Conflicts:
ext/stan

Merge branch 'PHP-7.2'

* PHP-7.2:
Fixed bug #76410 (SIGV in zend_mm_alloc_small)
Fix bug #76390 - do not allow invalid strings in range()

Conflicts:
ext/standard/array.c

show more ...


# 951e29f6 05-Jun-2018 Xinchen Hui

Fixed bug #76410 (SIGV in zend_mm_alloc_small)

# c12fc77b 05-Jun-2018 Stanislav Malyshev

Fix bug #76390 - do not allow invalid strings in range()

# 5fbb0988 05-Jun-2018 Stanislav Malyshev

Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
Fix bug #76390 - do not allow invalid strings in range()


12345678910>>...45