History log of /PHP-7.3/ext/standard/array.c (Results 51 – 75 of 848)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 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.


Revision tags: php-7.1.12RC1, php-7.2.0RC6, php-7.0.26RC1
# a8a17a72 01-Nov-2017 Xinchen Hui

RC manipulation cleanup


# bbf57b11 30-Oct-2017 Sara Golemon

Revert array_slice passthrough optimization

This reverts commit fabb5b7a7421280b43e6f11c59d9446f6b21e3e6.
This reverts commit e751e6cebad959592f223f99ffd2a60cdf51bed0.


# cc96166f 27-Oct-2017 Sara Golemon

Don't optimize input arrays with suffix holes


# fabb5b7a 27-Oct-2017 Sara Golemon

array_slice() passthrough for preserve_keys=true as well


# e751e6ce 27-Oct-2017 Sara Golemon

Do not create a new array when slicing all of input array.


# 49ea143b 26-Oct-2017 Dmitry Stogov

Encapsulate reference-counting primitives.
Prohibit direct update of GC_REFCOUNT(), GC_SET_REFCOUNT(), GC_ADDREF() and GC_DELREF() shoukf be instead.
Added mactros to validate reference-count

Encapsulate reference-counting primitives.
Prohibit direct update of GC_REFCOUNT(), GC_SET_REFCOUNT(), GC_ADDREF() and GC_DELREF() shoukf be instead.
Added mactros to validate reference-counting (disabled for now).
These macros are going to be used to eliminate race-condintions during reference-counting on data shared between threads.

show more ...


Revision tags: php-7.1.11, php-5.6.32, php-7.2.0RC5
# 9cf87aa1 24-Oct-2017 Dmitry Stogov

Avoid HashTable allocations for empty arrays (using zend_empty_array).


Revision tags: php-7.0.25
# 793ca716 22-Oct-2017 Anatol Belski

Fix datatypes and compiler warnings

Switch to size_t

Not critical as an unsigned is already used, but fixes a couple of
warnings in other areas.

Normalize signature

Fix datatypes and compiler warnings

Switch to size_t

Not critical as an unsigned is already used, but fixes a couple of
warnings in other areas.

Normalize signature

It's a function with the usual compare semantics, returning a platform
specific at least produces unnecessary warnings elsewhere and is otherwise
inappropriate.

Fix return value

Drop unused var

Fix compiler warnings

Fix compiler warning

Fix var name in arginfo

Fix cast

show more ...


Revision tags: php-7.1.11RC1, php-7.2.0RC4, php-7.0.25RC1
# 254b74b8 05-Oct-2017 Dmitry Stogov

HASH_FLAG_PERSISTENT renamed into IS_ARRAY_PERSISTENT and moved into GC_FLAGS (to be consistent with IS_STR_PERSISTENT).


# cb9d81ef 05-Oct-2017 Dmitry Stogov

Refactored recursion pretection


Revision tags: php-7.1.10, php-7.2.0RC3, php-7.0.24, php-7.2.0RC2, php-7.1.10RC1, php-7.0.24RC1, php-7.1.9, php-7.2.0RC1, php-7.0.23
# ba83338c 24-Aug-2017 tbpgr

Fix typo retuns to returns


# 4fbff82c 23-Aug-2017 Kalle Sommer Nielsen

Kill compiler warnings in ext/standard


Revision tags: php-7.1.9RC1, php-7.2.0beta3, php-7.0.23RC1, php-7.1.8, php-7.2.0beta2
# 6c2c7a02 01-Aug-2017 Nikita Popov

Optimize array_unique()

In SORT_STRING mode, instead of sorting the array, build a hash of
seen elements.


12345678910>>...34