From 3bd74e422a07eb4968ec0f95f02ce8ce3a0adb0c Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Thu, 8 Feb 2007 08:44:51 +0000 Subject: [PATCH] - MFH Add new test --- .../tests/general_functions/bug40398.phpt | 90 +++++++++++++++++++ 1 file changed, 90 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..46eed6153d --- /dev/null +++ b/ext/standard/tests/general_functions/bug40398.phpt @@ -0,0 +1,90 @@ +--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 argument is expected to be a valid callback, 'Base::__construct' was given in %sbug40398.php on line %d + +Warning: call_user_func_array(): First argument is expected to be a valid callback, 'parent::__construct' was given in %sbug40398.php on line %d + +Strict Standards: Non-static method Base::__construct() cannot be called statically, assuming $this from compatible context Derived_5 in %sbug40398.php on line %d +Base::__construct(5) + +Strict Standards: Non-static method Base::__construct() cannot be called statically, assuming $this from compatible context Derived_6 in %sbug40398.php on line %d +Base::__construct(6) +===DONE=== \ No newline at end of file -- 2.50.1