History log of /PHP-8.0/ext/standard/array.c (Results 151 – 175 of 961)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# a795bd82 22-Mar-2018 Dmitry Stogov

Optimize zend_hash_real_init()


# d1c6bda2 22-Mar-2018 Dmitry Stogov

Fixed expectation


# d7f2dc4e 21-Mar-2018 Dmitry Stogov

Improve HashTable iterators handling:
- Avoid iterators check/update on each HashTable update opration
- Keep position equal (or above) nNumUsed instead of HT_INVALID_IDX
- Fixed iterator

Improve HashTable iterators handling:
- Avoid iterators check/update on each HashTable update opration
- Keep position equal (or above) nNumUsed instead of HT_INVALID_IDX
- Fixed iterators handling in array_unshift()

show more ...


# 5e106778 20-Mar-2018 Anatol Belski

Use const pointers


# 98aeb528 07-Mar-2018 Anatol Belski

Remove unused assignment


# fd5bd37a 05-Mar-2018 Nikita Popov

Revert "Fixed bug #75961 (Strange references behavior)"

This reverts commit 94e9d0a2ae76bad712495d820d3962e401085fef.

This code needs to be mindful about modifications to the array

Revert "Fixed bug #75961 (Strange references behavior)"

This reverts commit 94e9d0a2ae76bad712495d820d3962e401085fef.

This code needs to be mindful about modifications to the array
happening during callback execution. It was written in a way that
only accessed the reference, which is guaranteed not to move. The
changed implementation instead accesses the array slot, leading to
use-after-free.

Run ext/standard/tests/array/bug61967.phpt under valgrind to see
the issue.

show more ...


# 94e9d0a2 17-Feb-2018 Xinchen Hui

Fixed bug #75961 (Strange references behavior)


# 6634d5e3 22-Jan-2018 Dmitry Stogov

Use HT_FLAGS() macro


# ebf900a9 22-Jan-2018 Dmitry Stogov

Introduce mcros to access HashTable iterators counter


# 9cbb5210 22-Jan-2018 Dmitry Stogov

Access HashTable.u.flags through HT_FLAGS() macro.


# 465a8cfb 19-Jan-2018 Dmitry Stogov

Use reference-counting instead of duplication


# 40b84831 17-Jan-2018 Dmitry Stogov

Use SEPARATE_ARRAY


# 8c73fc80 12-Jan-2018 Nikita Popov

Fixed bug #75653


# a307689b 02-Jan-2018 Xinchen Hui

Remove unnecessary initialization:w


# a6519d05 02-Jan-2018 Xinchen Hui

year++


# 7a7ec01a 02-Jan-2018 Xinchen Hui

year++


# ccd4716e 02-Jan-2018 Xinchen Hui

year++


# efcbea43 26-Dec-2017 Dmitry Stogov

Cheaper reference construction


# 2bbcc04c 11-Dec-2017 Dmitry Stogov

Added special cases for array_diff(), when first argument is an empty array or an array with single element.


# c5ba76d9 11-Dec-2017 Dmitry Stogov

Use cheaper API


# 778dfbc1 11-Dec-2017 Dmitry Stogov

Use cheaper functions


# e4e26f24 03-Dec-2017 Tom Van Looy

Remove RAND_RANGE() macro

The behavior of RANGE_RANGE() is 7.1 changed completely, from
rescaling an already generated number to generating a number
itself. Because of this str_shuff

Remove RAND_RANGE() macro

The behavior of RANGE_RANGE() is 7.1 changed completely, from
rescaling an already generated number to generating a number
itself. Because of this str_shuffle() ended up generating two
random numbers on every iteration.

To avoid further misuse the function is dropped entirely. Extensions
for PHP >= 7.1 should directly call php_mt_rand_range().

show more ...


# 185478d0 07-Dec-2017 Dmitry Stogov

Use cheaper SEPARATE macros


# cc12acef 04-Dec-2017 Dmitry Stogov

Use cheaper functions


Revision tags: php-7.0.26
# ccc12b82 16-Nov-2017 Dmitry Stogov

Avoid unnecessary reference-counting on strings.


12345678910>>...39