Skip to content

Commit 94a15cc

Browse files
authored
1 parent f64c624 commit 94a15cc

File tree

3 files changed

+6
-20
lines changed

3 files changed

+6
-20
lines changed

Zend/tests/bug79668.phpt

Lines changed: 0 additions & 16 deletions
This file was deleted.

Zend/zend_builtin_functions.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,15 +1483,15 @@ ZEND_FUNCTION(get_defined_functions)
14831483
zval internal, user;
14841484
zend_string *key;
14851485
zend_function *func;
1486-
bool exclude_disabled = 1;
1486+
bool exclude_disabled = true;
14871487

14881488
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|b", &exclude_disabled) == FAILURE) {
14891489
RETURN_THROWS();
14901490
}
14911491

1492-
if (exclude_disabled == 0) {
1492+
if (ZEND_NUM_ARGS() == 1) {
14931493
zend_error(E_DEPRECATED,
1494-
"get_defined_functions(): Setting $exclude_disabled to false has no effect");
1494+
"get_defined_functions(): The $exclude_disabled parameter has no effect since PHP 8.0");
14951495
}
14961496

14971497
array_init(&internal);

tests/basic/bug31875.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ var_dump(in_array($disabled_function, $functions['internal']));
2222
--EXPECTF--
2323
bool(false)
2424

25-
Deprecated: get_defined_functions(): Setting $exclude_disabled to false has no effect in %s on line %d
25+
Deprecated: get_defined_functions(): The $exclude_disabled parameter has no effect since PHP 8.0 in %s on line %d
2626
bool(false)
27+
28+
Deprecated: get_defined_functions(): The $exclude_disabled parameter has no effect since PHP 8.0 in %s on line %d
2729
bool(false)

0 commit comments

Comments
 (0)