#47838 [NEW]: For some strict notices __autoload isn't used in the error handler

[email protected] ("taco at procurios dot nl")
Newsgroups php.bugs
Message-ID <[email protected]>
From:             taco at procurios dot nl
Operating system: Ubuntu
PHP version:      5.2.9
PHP Bug Type:     Unknown/Other Function
Bug description:  For some strict notices __autoload isn't used in the error handler

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 bug report at http://bugs.php.net/?id=47838&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        http://bugs.php.net/fix.php?id=47838&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        http://bugs.php.net/fix.php?id=47838&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        http://bugs.php.net/fix.php?id=47838&r=trysnapshot60
Fixed in CVS:                        http://bugs.php.net/fix.php?id=47838&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47838&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=47838&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=47838&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=47838&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=47838&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=47838&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=47838&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=47838&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=47838&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=47838&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47838&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47838&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=47838&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=47838&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=47838&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=47838&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=47838&r=mysqlcfg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.