php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51914 __autoload Does not Work in error_handler function by some case
Submitted: 2010-05-26 05:18 UTC Modified: 2013-02-18 00:34 UTC
Votes:6
Avg. Score:4.7 ± 0.5
Reproduced:6 of 6 (100.0%)
Same Version:1 (16.7%)
Same OS:2 (33.3%)
From: i at walkinraven dot name Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.2.13 OS: Ubuntu 8.04
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
37 - 31 = ?
Subscribe to this entry?

 
 [2010-05-26 05:18 UTC] i at walkinraven dot name
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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-23 14:24 UTC] tony2001@php.net
-Status: Open +Status: Feedback
 [2011-05-23 14:24 UTC] tony2001@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Dec 07 13:03:50 2022 UTC