]> granicus.if.org Git - php/commitdiff
Add BC define for users of the typoed zend_symbtable_add_new
authorSara Golemon <pollita@php.net>
Thu, 7 Sep 2017 21:35:54 +0000 (17:35 -0400)
committerSara Golemon <pollita@php.net>
Thu, 7 Sep 2017 21:35:54 +0000 (17:35 -0400)
Zend/zend_hash.h

index ffe47f16ea050396c29b3d936c5b2940ec046ade..499c07c287f6322b1795872bd8c1d37c0b66e942 100644 (file)
@@ -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;