summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2017-09-07 17:35:54 -0400
committerSara Golemon <pollita@php.net>2017-09-07 17:35:54 -0400
commit0413feb29c94b065be6a1a2f425c72add5779a67 (patch)
tree3a6ee972c83d95de6deb245012c37ce704ecafbd
parentf18cf46d07ebbb212aa1283a19ed531919136c54 (diff)
downloadphp-git-0413feb29c94b065be6a1a2f425c72add5779a67.tar.gz
Add BC define for users of the typoed zend_symbtable_add_new
-rw-r--r--Zend/zend_hash.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h
index ffe47f16ea..499c07c287 100644
--- a/Zend/zend_hash.h
+++ b/Zend/zend_hash.h
@@ -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;