History log of /PHP-7.4/ext/standard/array.c (Results 326 – 350 of 872)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 54d9ad53 18-Apr-2014 Dmitry Stogov

More ZEND_HASH_FOREACH_* related changes


# 277f8f63 18-Apr-2014 Dmitry Stogov

ZEND_HASH_FOREACH_* usage


# 7652a977 18-Apr-2014 Dmitry Stogov

Use ZEND_FETCH_FOREACH_* macros to iterate over HashTables instead of zend_hash_move_forward() and family.


# 153e5498 16-Apr-2014 Dmitry Stogov

Fixed zend_string/char mess


Revision tags: php-5.4.28RC1, php-5.5.12RC1
# 050d7e38 15-Apr-2014 Dmitry Stogov

Cleanup (1-st round)


# 703c1bc5 14-Apr-2014 Dmitry Stogov

Fixed passing arguments by reference into array_walk() callbacks.


# beda5093 13-Apr-2014 Bob Weinand

Reverted to 5a0da281e5a9fa02db18b4822d8b103c65849fa9
Discussion: http://news.php.net/php.cvs/76836


# 1a4a9eed 13-Apr-2014 Bob Weinand

Fix bug #67064 in a BC safe way
You can use an optional parameter now when implementing the Countable interface
to get the $mode passed to count().


Revision tags: php-5.6.0beta1
# ad2ef3d9 09-Apr-2014 Nikita Popov

Add only_integer_keys option to zend_hash_reindex

This allows to either do a full reindex, or only reindex the integer
keys.


# f485c84a 09-Apr-2014 Nikita Popov

Don't always separate splice replacement array

Only perform separation when a typecast is done. Avoids doing a
full hash copy in many cases.


# 22d3eb31 08-Apr-2014 Nikita Popov

Add zend_hash_splice

This implements the original functionality of php_splice, but
as an in-place operation, thus avoiding copying the HT.

This is much faster (~10x) if the spli

Add zend_hash_splice

This implements the original functionality of php_splice, but
as an in-place operation, thus avoiding copying the HT.

This is much faster (~10x) if the splice removes a small portion
of the array and doesn't insert many elements.

show more ...


# 1aa8719e 08-Apr-2014 Nikita Popov

Add zend_hash_reindex

The implementation differs from the original in array.c in that it
rehashes the hashtable in the same loop. This is approximately two
times faster (not counting

Add zend_hash_reindex

The implementation differs from the original in array.c in that it
rehashes the hashtable in the same loop. This is approximately two
times faster (not counting the rare case of a purely associative
array).

show more ...


# 3d17219c 07-Apr-2014 Dmitry Stogov

Refactored zend_hash_* iteration API zend_hash_fove_forward_ex(ht, pos) and family require second argument to be real pointer.
&(ht)->nInternalPointer should be passed instead of NULL.
zend_h

Refactored zend_hash_* iteration API zend_hash_fove_forward_ex(ht, pos) and family require second argument to be real pointer.
&(ht)->nInternalPointer should be passed instead of NULL.
zend_hash_update_current_key() may work only with internal pointer.

show more ...


# 58f0f250 03-Apr-2014 Dmitry Stogov

Various VM optimizations


# 76cc99fe 03-Apr-2014 Dmitry Stogov

Refactored ZVAL flags usage to simplify various checks (e.g. Z_REFCOUNTED(), candidate for GC, etc)


Revision tags: php-5.4.27
# 6b2ed577 01-Apr-2014 Dmitry Stogov

Avoid unnecessry reallocations


Revision tags: php-5.5.11
# a25a1ba0 01-Apr-2014 Dmitry Stogov

STR_DUP() doesn't duplicate interned strings anymore. In case new string is required STR_INIT() or STR_ALLOC() should be used.


# ea85451b 27-Mar-2014 Dmitry Stogov

Refactored data structures to keep zend_object* instead of a whole zval in some places


# c6cba554 27-Mar-2014 Dmitry Stogov

Use ZVAL_DEREF() macro


# 54d559d8 27-Mar-2014 Dmitry Stogov

Replaced (Z_TYPE(x) == IS_REFERENCE) with (Z_ISREF(x))


# f3272bf7 26-Mar-2014 Dmitry Stogov

Fixed extract() support IS_INDIRECT


# 887189ca 26-Mar-2014 Dmitry Stogov

Refactored IS_INDIRECT usage for CV and object properties to support HashTable resizing


# a6f09e48 19-Mar-2014 Dmitry Stogov

Fixed memory leak


# b7938ab1 19-Mar-2014 Dmitry Stogov

Refactored GC (incomplete)


Revision tags: php-5.5.11RC1, php-5.4.27RC1
# 6b6e9036 18-Mar-2014 Dmitry Stogov

Fixed support for references


1...<<11121314151617181920>>...35