Bug #51914 [NEW]: __autoload Does not Work in error_handler function by some case
| From: | i at walkinraven dot name | Date: | Wed, 26 May 2010 03:18:05 +0000 |
| Subject: | Bug #51914 [NEW]: __autoload Does not Work in error_handler function by some case | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-150818@lists.php.net to get a copy of this message | ||
From:
Operating system: Ubuntu 8.04
PHP version: 5.2.13
Package: Scripting Engine problem
Bug Type: Bug
Bug description:__autoload Does not Work in error_handler function by some case
Description:
------------
If your script does as below step, it will cause autoload function halt:
1. You have set an user-defined error handler function.
2. A statement need autoload.
3. The __autoload function emit an error.
4. The user-defined error handler function need autoload.
Test script:
---------------
URI: http://docs.google.com/View?id=dgt79v8r_120cwxm5mrg
Expected result:
----------------
Should not emit any fatal error
Actual result:
--------------
Fatal error: Class 'Class_A' not found in /usr/share/php/PEAR.php on line
569
Call Stack:
0.0002 60296 1. {main}()
/home/winfred/workspace/Test/applications/Bugs/new/index.php:0
0.0003 61216 2. __autoload()
/home/winfred/workspace/Test/applications/Bugs/new/index.php:0
0.0012 176604 3. error_handler()
/home/winfred/workspace/Test/applications/Bugs/new/index.php:0
--
Edit bug report at http://bugs.php.net/bug.php?id=51914&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51914&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51914&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51914&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=51914&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51914&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=51914&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=51914&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=51914&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=51914&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=51914&r=support
Expected behavior: http://bugs.php.net/fix.php?id=51914&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=51914&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=51914&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=51914&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51914&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51914&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=51914&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=51914&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=51914&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=51914&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=51914&r=mysqlcfg