mirror of
https://github.com/php/php-src.git
synced 2026-04-01 13:12:16 +02:00
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4: Fixed run-time binding of preloaded dynamically declared function
This commit is contained in:
4
NEWS
4
NEWS
@@ -2,8 +2,10 @@ PHP NEWS
|
||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||
?? ??? ????, PHP 8.0.0RC4
|
||||
|
||||
- Standard:
|
||||
- Opcache:
|
||||
. Fixed run-time binding of preloaded dynamically declared function. (Dmitry)
|
||||
|
||||
- Standard:
|
||||
. Don't force rebuild of symbol table, when populating $http_response_header
|
||||
variable by the HTTP stream wrapper. (Dmitry)
|
||||
|
||||
|
||||
@@ -1082,7 +1082,11 @@ ZEND_API zend_result do_bind_function(zval *lcname) /* {{{ */
|
||||
return FAILURE;
|
||||
}
|
||||
function = (zend_function*)Z_PTR_P(zv);
|
||||
zv = zend_hash_set_bucket_key(EG(function_table), (Bucket*)zv, Z_STR_P(lcname));
|
||||
if (UNEXPECTED(function->common.fn_flags & ZEND_ACC_PRELOADED)) {
|
||||
zv = zend_hash_add(EG(function_table), Z_STR_P(lcname), zv);
|
||||
} else {
|
||||
zv = zend_hash_set_bucket_key(EG(function_table), (Bucket*)zv, Z_STR_P(lcname));
|
||||
}
|
||||
if (UNEXPECTED(!zv)) {
|
||||
do_bind_function_error(Z_STR_P(lcname), &function->op_array, 0);
|
||||
return FAILURE;
|
||||
|
||||
Reference in New Issue
Block a user