Skip to content

Commit

Permalink
Add BC define for users of the typoed zend_symbtable_add_new
Browse files Browse the repository at this point in the history
  • Loading branch information
sgolemon committed Sep 7, 2017
1 parent f18cf46 commit 0413feb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Zend/zend_hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,10 @@ static zend_always_inline zval *zend_symtable_add_new(HashTable *ht, zend_string
}
}

/* This typo snuck into 7.0.17 and 7.1.3, this define exists for BC */
#define zend_symbtable_add_new(ht, key, pData) \
zend_symtable_add_new(ht, key, pData)

static zend_always_inline zval *zend_symtable_update(HashTable *ht, zend_string *key, zval *pData)
{
zend_ulong idx;
Expand Down

0 comments on commit 0413feb

Please sign in to comment.