History log of /PHP-8.1/ext/standard/array.c (Results 251 – 275 of 1077)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 352b4066 27-Oct-2017 Sara Golemon

Merge branch 'PHP-7.2'

* PHP-7.2:
Don't optimize input arrays with suffix holes


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

Revision tags: php-7.0.22, php-7.1.8RC1, php-7.2.0beta1, php-7.0.22RC1, php-5.6.31, php-7.0.21, php-7.1.7, php-7.2.0alpha3
# 5a51da99 29-Jun-2017 Dmitry Stogov

Use inlined version of zval_ptr_dtor() in array_map() loop

# 04fb3f28 25-Jun-2017 Tom Van Looy

Remove superfluous semicolons

Revision tags: php-7.1.7RC1, php-7.0.21RC1, php-7.2.0alpha2
# 9c2a1f52 19-Jun-2017 Dmitry Stogov

Avoid useless dereferences and separations during paramter passing.

# ace9fe53 08-Jun-2017 Dmitry Stogov

Improved new Zend Parameter Parsing API to avoid useless dereferences.
This derefernce made sense only for explicit paramter passing by reference, but this feature was removed in PHP-7.
The i

Improved new Zend Parameter Parsing API to avoid useless dereferences.
This derefernce made sense only for explicit paramter passing by reference, but this feature was removed in PHP-7.
The improvement is 100% backward compatible, only few "tricky" functions may be affected (e.g. extract and usort).

show more ...

Revision tags: php-7.1.6, php-7.2.0alpha1, php-7.0.20
# 27e7aea4 25-May-2017 Dmitry Stogov

"Countable" interface is moved from SPL to Core

Revision tags: php-7.1.6RC1, php-7.0.20RC1
# a08723d3 18-May-2017 Dmitry Stogov

Use interned empty and "one char" strings.

# 2649a9e1 17-May-2017 Dmitry Stogov

Removed useless dereferences

Revision tags: php-7.1.5, php-7.0.19, php-7.0.19RC1, php-7.1.5RC1, php-7.1.4, php-7.0.18
# 51b06aa8 02-Apr-2017 Nikita Popov

Merge branch 'PHP-7.1'


# c8034514 02-Apr-2017 Nikita Popov

Fixed bug #74361

Revision tags: php-7.1.4RC1, php-7.0.18RC1
# 932c4b35 16-Mar-2017 Thomas Punt

Remove more unnecessary checks on Zend's allocator functions

# 131fd3ba 14-Mar-2017 Sara Golemon

Remove unnecesary shadow of new_val

# c74bc87c 14-Mar-2017 Sara Golemon

Minor optimizations to array_keys()/array_values()

array_values():
When the input is an empty array or a packed array with no gaps,
return the original array.

array_keys():

Minor optimizations to array_keys()/array_values()

array_values():
When the input is an empty array or a packed array with no gaps,
return the original array.

array_keys():
When the input is an empty array, return the original array.
When the input is a packed array with no holes
(and no search key specified), populate the return with
a simple range(0, count($input) - 1)

show more ...

Revision tags: php-7.1.3, php-7.0.17
# c6982995 04-Mar-2017 Anatol Belski

Interned strings unification for TS/NTS

Hereby, interned strings are supported in thread safe PHP. The patch
implements two types of interned strings

- interning per process, st

Interned strings unification for TS/NTS

Hereby, interned strings are supported in thread safe PHP. The patch
implements two types of interned strings

- interning per process, strings are not freed till process end
- interning per request, strings are freed at request end

There is no runtime interning.

With Opcache, all the permanent iterned strings are copied into SHM on
startup, additional copying into SHM might happen on demand.

show more ...

1...<<11121314151617181920>>...44