Skip to content

Commit 361d300

Browse files
committed
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1: Add BC define for users of the typoed zend_symbtable_add_new
2 parents ff04db4 + a1573d5 commit 361d300

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
@@ -357,6 +357,10 @@ static zend_always_inline zval *zend_symtable_add_new(HashTable *ht, zend_string
357357
}
358358
}
359359

360+
/* This typo snuck into 7.0.17 and 7.1.3, this define exists for BC */
361+
#define zend_symbtable_add_new(ht, key, pData) \
362+
zend_symtable_add_new(ht, key, pData)
363+
360364
static zend_always_inline zval *zend_symtable_update(HashTable *ht, zend_string *key, zval *pData)
361365
{
362366
zend_ulong idx;

0 commit comments

Comments
 (0)