From: kristopherwilson at gmail dot com
Operating system: Any
PHP version: 5.3.1
PHP Bug Type: Feature/Change Request
Bug description: Add function to get all used namespaces
Description:
------------
Provide a function for returning all namespaces used in the current
request to aid in autoloading.
Reproduce code:
---------------
<?php
use My\Namespace;
use Other\Namespace;
print_r(get_used_namespaces());
?>
Expected result:
----------------
Array(
[0] = My\Namespace,
[1] = Other\Namespace
)
Actual result:
--------------
No such function exists.
--
Edit bug report at http://bugs.php.net/?id=50552&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=50552&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=50552&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=50552&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=50552&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=50552&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=50552&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=50552&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=50552&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=50552&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=50552&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=50552&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=50552&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=50552&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=50552&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50552&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50552&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=50552&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=50552&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=50552&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=50552&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=50552&r=mysqlcfg