mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Remove leading underscore for _zend_hash_find_known_hash (#7260)
Convert zend_hash_find_ex(..., 1) to zend_hash_find_known_hash(...) Convert zend_hash_find_ex(..., 0) to zend_hash_find(...) Also add serializable changes to UPGRADING.INTERNALS summary
This commit is contained in:
parent
576655e23f
commit
ae8647d9d3
21 changed files with 171 additions and 168 deletions
|
@ -136,7 +136,7 @@ static void zend_accel_function_hash_copy(HashTable *target, HashTable *source)
|
|||
for (; p != end; p++) {
|
||||
ZEND_ASSERT(Z_TYPE(p->val) != IS_UNDEF);
|
||||
ZEND_ASSERT(p->key);
|
||||
t = zend_hash_find_ex(target, p->key, 1);
|
||||
t = zend_hash_find_known_hash(target, p->key);
|
||||
if (UNEXPECTED(t != NULL)) {
|
||||
goto failure;
|
||||
}
|
||||
|
@ -173,7 +173,7 @@ static void zend_accel_class_hash_copy(HashTable *target, HashTable *source)
|
|||
for (; p != end; p++) {
|
||||
ZEND_ASSERT(Z_TYPE(p->val) != IS_UNDEF);
|
||||
ZEND_ASSERT(p->key);
|
||||
t = zend_hash_find_ex(target, p->key, 1);
|
||||
t = zend_hash_find_known_hash(target, p->key);
|
||||
if (UNEXPECTED(t != NULL)) {
|
||||
if (EXPECTED(ZSTR_LEN(p->key) > 0) && EXPECTED(ZSTR_VAL(p->key)[0] == 0)) {
|
||||
/* Runtime definition key. There are two circumstances under which the key can
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue