php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #46989 namespace fallback for classes
Submitted: 2009-01-02 01:42 UTC Modified: 2017-03-11 18:04 UTC
Votes:4
Avg. Score:4.8 ± 0.4
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: info at netmosfera dot it Assigned:
Status: Wont fix Package: *General Issues
PHP Version: 5.3.0alpha3 OS: irrelevant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: info at netmosfera dot it
New email:
PHP Version: OS:

 

 [2009-01-02 01:42 UTC] info at netmosfera dot it
Description:
------------
hello
is possible to implement classes fallback in php namespaces?

thank you

Reproduce code:
---------------
namespace A\B\C;
new X();


A\B\C\Exception not found, switch to
A\B\Exception not found, switch to
A\Exception not found, switch to
\Exception found




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-03-11 18:04 UTC] nikic@php.net
-Status: Open +Status: Wont fix -Package: Feature/Change Request +Package: *General Issues
 [2017-03-11 18:04 UTC] nikic@php.net
At this point in time, the behavior here is not going to change, so I'm marking this FR as Won't Fix.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 23:01:28 2024 UTC