|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-03-30 14:34 UTC] sander dot vink at procurios dot nl
[2009-08-07 19:53 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 01:00:01 2025 UTC |
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