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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Mon Dec 08 06:00:01 2025 UTC