com php-src: Add BC define for users of the typoed zend_symbt able_add_new: Zend/zend_hash.h
| From: | Sara Golemon | Date: | Thu, 07 Sep 2017 21:35:54 +0000 |
| Subject: | com php-src: Add BC define for users of the typoed zend_symbt able_add_new: Zend/zend_hash.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-99314@lists.php.net to get a copy of this message | ||
Commit: 0413feb29c94b065be6a1a2f425c72add5779a67
Author: Sara Golemon <pollita@php.net> Thu, 7 Sep 2017 17:35:54 -0400
Parents: f18cf46d07ebbb212aa1283a19ed531919136c54
Branches: PHP-7.0 PHP-7.1 PHP-7.2 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0413feb29c94b065be6a1a2f425c72add5779a67
Log:
Add BC define for users of the typoed zend_symbtable_add_new
Changed paths:
M Zend/zend_hash.h
Diff:
diff --git a/Zend/zend_hash.h b/Zend/zend_hash..h
index ffe47f1..499c07c 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;