From: naturallydigital at yahoo dot com
Operating system: Windows XP Home SP2
PHP version: 5.3CVS-2008-12-15 (CVS)
PHP Bug Type: Reflection related
Bug description: "use...as" not suppored by Reflection::export()
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 bug report at http://bugs.php.net/?id=46867&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=46867&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=46867&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=46867&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=46867&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=46867&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=46867&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=46867&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=46867&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=46867&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=46867&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=46867&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=46867&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=46867&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=46867&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46867&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46867&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=46867&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=46867&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=46867&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=46867&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=46867&r=mysqlcfg