[2013年06月11日 15:50 UTC] alexander dot stehlik at gmail dot com
Description: ------------ This bug was pretty hard to track down. I uploaded a test script to make it clear. These conditions need to be met to trigger the bug: 1. You use a custom error handler 2. You use namespaces 3. You use the "use" statement 4. You require a class within the error handler 5. You have a class that uses a deprecated = & new Classname() statment Using an autoloader is no workaround because the system thinks the namespaced class is available (class_exists() returns true). Test script: --------------- To reproduce the bug several files are needed. I uploaded a test script. You can download it here: https://docs.google.com/file/d/0Bz4hXLAjQnaiRlJWblNuX1psdzg/edit?usp=sharing No Google account required for download! Please call index.php and you will see an error: Fatal error: Class 'namespaced_class' not found in requireerror/deprecated_reference.php on line 42 Please have a look at the code to see how it occurs. Expected result: ---------------- I expect the class that is found by class_exists() and included with a "use" statement is accessible. Actual result: -------------- I get an error: Fatal error: Class 'namespaced_class' not found in deprecated_reference.php on line 31 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015年07月16日 22:03 UTC] cmb@php.net
-Status: Open
+Status: Analyzed
-Operating System: Ubuntu 12.10 / CentOS 6.4
+Operating System: *
-PHP Version: 5.4.16
+PHP Version: 5.6.11
[2015年07月16日 22:03 UTC] cmb@php.net
[2020年12月07日 16:46 UTC] cmb@php.net
-Package: Unknown/Other Function
+Package: Scripting Engine problem
|