ID: 47838 Comment by: sander dot vink at procurios dot nl Reported By: taco at procurios dot nl Status: Open Bug Type: Unknown/Other Function Operating System: Ubuntu PHP Version: 5.2.9 New Comment:
The same error occurs on the latest snapshot of PHP5.3 (Built on: Mar 30, 2009 12:30 UTC): Actual result: -------------- My Error: Declaration of Baz::bar() should be compatible with that of Foo::bar() Fatal error: Class 'Qux' not found in /Users/svink/Desktop/bugtest/php_bug1_2.php on line 15 Previous Comments: ------------------------------------------------------------------------ [2009-03-30 12:55:40] taco at procurios dot nl Description: ------------ We dynamicly load a logging class in our error handler function using autoload. For some STRICT notices (Declaration of Baz::bar() should be compatible with that of Foo::bar()) the __autoload() function isn't called to load that logging class. If you replace the line "require('php_bug1_2.php');" with "mktime();", which also casts an E_STRICT notice, you'll see the expected result instead of the missing Qux class error. Reproduce code: --------------- http://thh.takkie.nl/php_bug1.php Expected result: ---------------- My Error: Declaration of Baz::bar() should be compatible with that of Foo::bar() Stuff is done Actual result: -------------- My Error: Declaration of Baz::bar() should be compatible with that of Foo::bar() Fatal error: Class 'Qux' not found in /data/www/thh.takkie.nl/public_html/php_bug1_2.php on line 15 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47838&edit=1