mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: disabled functions must not have return type Restore the execute bit for run-tests.php
This commit is contained in:
commit
cc598d1ea9
1 changed files with 1 additions and 1 deletions
|
@ -2781,7 +2781,7 @@ ZEND_API int zend_disable_function(char *function_name, size_t function_name_len
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((func = zend_hash_str_find_ptr(CG(function_table), function_name, function_name_length))) {
|
if ((func = zend_hash_str_find_ptr(CG(function_table), function_name, function_name_length))) {
|
||||||
func->fn_flags &= ~(ZEND_ACC_VARIADIC | ZEND_ACC_HAS_TYPE_HINTS);
|
func->fn_flags &= ~(ZEND_ACC_VARIADIC | ZEND_ACC_HAS_TYPE_HINTS | ZEND_ACC_HAS_RETURN_TYPE);
|
||||||
func->num_args = 0;
|
func->num_args = 0;
|
||||||
func->arg_info = NULL;
|
func->arg_info = NULL;
|
||||||
func->handler = ZEND_FN(display_disabled_function);
|
func->handler = ZEND_FN(display_disabled_function);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue