Skip to content

Commit 5674cf8

Browse files
committed
Use better macros
1 parent 909f943 commit 5674cf8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_hash.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2671,7 +2671,7 @@ ZEND_API HashTable* ZEND_FASTCALL zend_symtable_to_proptable(HashTable *ht)
26712671
goto convert;
26722672
}
26732673

2674-
ZEND_HASH_FOREACH_KEY_VAL(ht, num_key, str_key, zv) {
2674+
ZEND_HASH_FOREACH_STR_KEY(ht, str_key) {
26752675
if (!str_key) {
26762676
goto convert;
26772677
}
@@ -2720,7 +2720,7 @@ ZEND_API HashTable* ZEND_FASTCALL zend_proptable_to_symtable(HashTable *ht, zend
27202720
zend_string *str_key;
27212721
zval *zv;
27222722

2723-
ZEND_HASH_FOREACH_KEY_VAL(ht, num_key, str_key, zv) {
2723+
ZEND_HASH_FOREACH_STR_KEY(ht, str_key) {
27242724
/* The `str_key &&` here might seem redundant: property tables should
27252725
* only have string keys. Unfortunately, this isn't true, at the very
27262726
* least because of ArrayObject, which stores a symtable where the

0 commit comments

Comments
 (0)