ID:               46867
 Updated by:       [email protected]
 Reported By:      naturallydigital at yahoo dot com
 Status:           Open
 Bug Type:         Reflection related
 Operating System: *
 PHP Version:      5.3CVS-2008-12-15 (CVS)
 New Comment:

Should be same with class_alias(), I'm not sure if its intended for
Reflection to support aliased classes


Previous Comments:
------------------------------------------------------------------------

[2008-12-15 08:27:00] naturallydigital at yahoo dot com

Description:
------------
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
snaps.php.net: "php -c php.ini-dist d:\reflect.php" (code below)



Reproduce code:
---------------
<?php
require_once("A\\B\\C.php");
use \A\B\C as D;
try
{
        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.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=46867&edit=1

Reply via email to