From 978832331acdcb59114bdba28498c248c5188883 Mon Sep 17 00:00:00 2001 From: Willian Gustavo Veiga Date: Sat, 30 May 2015 12:29:27 -0300 Subject: Fix bug #31875 - get_defined_functions() should not list disabled functions. --- tests/basic/bug31875.phpt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/basic/bug31875.phpt (limited to 'tests/basic') diff --git a/tests/basic/bug31875.phpt b/tests/basic/bug31875.phpt new file mode 100644 index 0000000000..d29b7f1b1b --- /dev/null +++ b/tests/basic/bug31875.phpt @@ -0,0 +1,12 @@ +--TEST-- +Bug #31875 get_defined_functions() should not list disabled functions +--CREDITS-- +Willian Gustavo Veiga +--INI-- +disable_functions=dl +--FILE-- + +--EXPECTF-- +bool(false) -- cgit v1.2.1 From 33721742a59a34989d54846432a04ae62a4939bb Mon Sep 17 00:00:00 2001 From: Willian Gustavo Veiga Date: Tue, 2 Jun 2015 21:42:18 -0300 Subject: Added "exclude_disabled" argument to "get_defined_functions". --- tests/basic/bug31875.phpt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tests/basic') diff --git a/tests/basic/bug31875.phpt b/tests/basic/bug31875.phpt index d29b7f1b1b..78085d766b 100644 --- a/tests/basic/bug31875.phpt +++ b/tests/basic/bug31875.phpt @@ -6,7 +6,18 @@ Willian Gustavo Veiga disable_functions=dl --FILE-- --EXPECTF-- +bool(true) +bool(true) bool(false) -- cgit v1.2.1