From: Marcus Boerger Date: Thu, 8 Feb 2007 08:44:51 +0000 (+0000) Subject: - MFH Add new test X-Git-Tag: php-5.2.2RC1~446 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3bd74e422a07eb4968ec0f95f02ce8ce3a0adb0c;p=php - MFH Add new test --- 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