Skip to content

Commit 6c73b20

Browse files
committed
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2: disabled functions must not have return type
2 parents 72c330f + 7821cc3 commit 6c73b20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_API.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2848,7 +2848,7 @@ ZEND_API int zend_disable_function(char *function_name, size_t function_name_len
28482848
{
28492849
zend_internal_function *func;
28502850
if ((func = zend_hash_str_find_ptr(CG(function_table), function_name, function_name_length))) {
2851-
func->fn_flags &= ~(ZEND_ACC_VARIADIC | ZEND_ACC_HAS_TYPE_HINTS);
2851+
func->fn_flags &= ~(ZEND_ACC_VARIADIC | ZEND_ACC_HAS_TYPE_HINTS | ZEND_ACC_HAS_RETURN_TYPE);
28522852
func->num_args = 0;
28532853
func->arg_info = NULL;
28542854
func->handler = ZEND_FN(display_disabled_function);

0 commit comments

Comments
 (0)