Req #70834 [NEW]: Namespace name scalar with ::namespace

From: Date: Mon, 02 Nov 2015 11:03:03 +0000
Subject: Req #70834 [NEW]: Namespace name scalar with ::namespace
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196972@lists.php.net to get a copy of this message
From: office at maslosoft dot com Operating system: Any PHP version: Irrelevant Package: Reflection related Bug Type: Feature/Change Request Bug description:Namespace name scalar with ::namespace Description: ------------ Background: There is existing special constant, ie Vendor\Package\ClassName::class, as per RFC: https://wiki.php.net/rfc/class_name_scalars Requested feature: There could be also namespace constant, which is anyway reserved, ie: Vendor\Package\ClassName::namespace should resolve to string '\Vendor\Package\ClassName' Pros: Could be used for any namespace related operation, like registering namespace for some purpose Cons: Could interfere with token parsing scripts -- Edit bug report at https://bugs.php.net/bug.php?id=70834&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70834&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70834&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70834&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70834&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70834&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70834&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70834&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70834&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70834&r=support Expected behavior: https://bugs.php.net/fix.php?id=70834&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70834&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70834&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70834&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70834&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70834&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70834&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70834&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70834&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70834&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70834&r=mysqlcfg

« previous php.bugs (#196972) next »