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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: i at walkinraven dot name
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC