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


# 73bf2385 05-Jun-2018 Stanislav Malyshev

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

# 3c122e16 30-May-2018 Dmitry Stogov

Avoid rehashing of "packed" array

# 74be5893 28-May-2018 Anatol Belski

Merge branch 'PHP-7.2'

* PHP-7.2:
Translate correct C++ version with suitable compiler
Fixed bug #76383 (array_map on $GLOBALS returns IS_INDIRECT)


# d5ee654b 28-May-2018 Anatol Belski

Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
Translate correct C++ version with suitable compiler
Fixed bug #76383 (array_map on $GLOBALS returns IS_INDIRECT)


# 5eb1f92f 28-May-2018 Dmitry Stogov

Use zend_string_release_ex() instread of zend_string_release() in places, where we sure about string persistence.

12345678910>>...45