Skip to content

Commit f88a32e

Browse files
committed
Wrap condition that only happens when prepending autoloaders in UNEXPECTED()
1 parent bbfb256 commit f88a32e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_autoload.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ZEND_TLS HashTable *autoloader_function_autoload_functions;
3434
memmove((ht)->arData + 1, (ht)->arData, \
3535
sizeof(Bucket) * ((ht)->nNumUsed - 1)); \
3636
(ht)->arData[0] = tmp; \
37-
if (!((ht)->u.flags & HASH_FLAG_PACKED)) { \
37+
if (UNEXPECTED(!((ht)->u.flags & HASH_FLAG_PACKED))) { \
3838
zend_hash_rehash(ht); \
3939
} else { \
4040
zend_autoload_reindex(ht); \

0 commit comments

Comments
 (0)