|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46867 "" not suppored by Reflection::export()
Submitted: 2008-12-15 08:27 UTC Modified: 2009-01-05 07:18 UTC
From: naturallydigital at yahoo dot com Assigned:
Status: Not a bug Package: Reflection related
PHP Version: 5.3CVS-2008-12-15 (CVS) OS: *
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.
Block user comment
Status: Assign to:
Bug Type:
From: naturallydigital at yahoo dot com
New email:
PHP Version: OS:


 [2008-12-15 08:27 UTC] naturallydigital at yahoo dot com
The Reflection API does not support the "use... as... " syntax for namespaces in 5.3 CVS. I ran the raw unzipped Win32 VC6 snapshot from "php -c php.ini-dist d:\reflect.php" (code below)

Reproduce code:
use \A\B\C as D;
        Reflection::export(new ReflectionClass('D'));
catch (Exception $e)
        echo $e->getMessage();

Expected result:
User class C (a.k.a. D) reflected in the Command Prompt window.

Actual result:
"Class D does not exist" output in the Command Prompt window.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-01-01 02:15 UTC]
Should be same with class_alias(), I'm not sure if its intended for Reflection to support aliased classes
 [2009-01-02 02:12 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

In strins you always have to use the fully qualified name - we don't know where the string is coming from and the aliasing is done at compile time,not runtime ...
 [2009-01-05 07:18 UTC] naturallydigital at yahoo dot com
class_alias() didn't appear in the official documentation ( Thanks for pointing that out.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 09:01:29 2024 UTC