From 8e5f95d199adcc890c8e8f886330206f06d5ba9e Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Thu, 8 Feb 2007 08:44:28 +0000 Subject: [PATCH] - Add new test --- .../tests/general_functions/bug40398.phpt | 88 +++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100755 ext/standard/tests/general_functions/bug40398.phpt diff --git a/ext/standard/tests/general_functions/bug40398.phpt b/ext/standard/tests/general_functions/bug40398.phpt new file mode 100755 index 0000000000..ab5d52e05a --- /dev/null +++ b/ext/standard/tests/general_functions/bug40398.phpt @@ -0,0 +1,88 @@ +--TEST-- +Bug: #40398 (parent and self callback functions erroneously called statically) +--FILE-- + +===DONE=== +--EXPECTF-- +Base::__construct(1) +Base::__construct(2) + +Warning: call_user_func_array(): first parameter is expected to be a valid callback in %sbug40398.php on line %d + +Warning: call_user_func_array(): first parameter is expected to be a valid callback in %sbug40398.php on line %d + +Warning: call_user_func_array(): first parameter is expected to be a valid callback in %sbug40398.php on line %d + +Warning: call_user_func_array(): first parameter is expected to be a valid callback in %sbug40398.php on line %d +===DONE=== \ No newline at end of file -- 2.50.1