Skip to content

Commit 0413feb

Browse files
committed
Add BC define for users of the typoed zend_symbtable_add_new
1 parent f18cf46 commit 0413feb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Zend/zend_hash.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,10 @@ static zend_always_inline zval *zend_symtable_add_new(HashTable *ht, zend_string
321321
}
322322
}
323323

324+
/* This typo snuck into 7.0.17 and 7.1.3, this define exists for BC */
325+
#define zend_symbtable_add_new(ht, key, pData) \
326+
zend_symtable_add_new(ht, key, pData)
327+
324328
static zend_always_inline zval *zend_symtable_update(HashTable *ht, zend_string *key, zval *pData)
325329
{
326330
zend_ulong idx;

0 commit comments

Comments
 (0)