|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #50552 Add function to get all used namespaces
Submitted: 2009-12-22 02:53 UTC Modified: 2010-11-24 09:50 UTC
Avg. Score:3.6 ± 1.8
Reproduced:5 of 5 (100.0%)
Same Version:2 (40.0%)
Same OS:2 (40.0%)
From: kristopherwilson at gmail dot com Assigned:
Status: Open Package: Scripting Engine problem
PHP Version: * OS: *
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:
Solve the problem:
33 + 19 = ?
Subscribe to this entry?

 [2009-12-22 02:53 UTC] kristopherwilson at gmail dot com
Provide a function for returning all namespaces used in the current request to aid in autoloading. 

Reproduce code:
    use My\Namespace;
    use Other\Namespace;


Expected result:
    [0] = My\Namespace,
    [1] = Other\Namespace

Actual result:
No such function exists.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-24 09:50 UTC]
-Package: Feature/Change Request +Package: Scripting Engine problem -Operating System: Any +Operating System: * -PHP Version: 5.3.1 +PHP Version: *
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Sep 28 14:03:36 2021 UTC