History log of /PHP-7.0/Zend/zend_hash.c (Results 126 – 150 of 346)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 69b5ee61 02-May-2014 Nikita Popov

Fixed bug #67169: []= after_array_splice incorrect

This fixes a regression I introduced in beta 1.


# b1ff1527 24-Apr-2014 Dmitry Stogov

Reimplement strtr()


# c98d373e 23-Apr-2014 Nikita Popov

Fix strict array comparison

Fixes Symfony test failures


# 72c287bd 21-Apr-2014 Dmitry Stogov

Combine HashTable.flags and HashTable.nApplyCount into single 32-bit word


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

Cleanup (1-st round)


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.


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


# 3167b49c 07-Apr-2014 Dmitry Stogov

Allocate HashTable->arData and HashTable->arHash at once


# 3485b114 07-Apr-2014 Dmitry Stogov

"incremental" hash bucket initialization


# 76cc99fe 03-Apr-2014 Dmitry Stogov

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


# d8099d04 02-Apr-2014 Dmitry Stogov

Changed data layout to allow more efficient operations


Revision tags: php-5.4.27
# 60961bba 01-Apr-2014 Dmitry Stogov

Avoid useless memset()


# 042c937f 01-Apr-2014 Dmitry Stogov

Use STR_COPY() instead of STR_DUP() where possible


Revision tags: php-5.5.11
# 887189ca 26-Mar-2014 Dmitry Stogov

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


# 9d4001f1 22-Mar-2014 Anatol Belski

fix C89 compat


# f331ed14 21-Mar-2014 Nikita Popov

Revert "Add helper function for updating bucket contents"

Reverting this for now, because it would require further changes
thanks to the zend signals tsrms-but-only-sometimes awesomeness.


# 4e7e301d 20-Mar-2014 Nikita Popov

Rename+move zend_hash_apply_deleter and reuse it

The interruption handling was normalized to wrap the entire deletion
operation (instead of leaving out the destructor call and/or the

Rename+move zend_hash_apply_deleter and reuse it

The interruption handling was normalized to wrap the entire deletion
operation (instead of leaving out the destructor call and/or the
deallocation) per the recommendation of somebody (don't remember who)
familiar with zend signals.

There is an always-inlined variant of the function for use in
the main deletion function, to ensure there is no performance
impact.

show more ...


# 4efa58dd 20-Mar-2014 Nikita Popov

Make zend_hash_apply_deleter() void, to allow reuse

Also remove lies in the comment above the function. apply_deleter
is not safe against modification, if the modification involves
r

Make zend_hash_apply_deleter() void, to allow reuse

Also remove lies in the comment above the function. apply_deleter
is not safe against modification, if the modification involves
removing the next bucket.

Also modified the implementation of zend_hash_graceful_destroy()
to be fully graceful (the reverse variant already was).

show more ...


# c3a31711 20-Mar-2014 Nikita Popov

Add helper function for updating bucket contents


# 994fcfcf 20-Mar-2014 Nikita Popov

Remove unnecessary check

In case of an update the key already existed, so the next free
element can not change.


Revision tags: php-5.5.11RC1, php-5.4.27RC1
# 62c448ab 17-Mar-2014 Dmitry Stogov

Fixed serialize/unserialize problems


# 51494f25 14-Mar-2014 Dmitry Stogov

Don't include trailing zero into hash caclculation


# 3e4c22b4 06-Mar-2014 Dmitry Stogov

Fixed possible HashTable modification in its destructor


12345678910>>...14