|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-02-26 14:00 UTC] johannes@php.net
-Status: Open
+Status: Bogus
[2011-02-26 14:00 UTC] johannes@php.net
[2011-02-26 14:13 UTC] johannes@php.net
-Status: Bogus
+Status: Open
[2011-02-26 14:13 UTC] johannes@php.net
[2011-02-26 14:20 UTC] felipe@php.net
-Status: Open
+Status: Bogus
[2011-02-26 14:20 UTC] felipe@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Jul 28 12:00:02 2026 UTC |
Description: ------------ Defining a namespace who's name starts with a \ is interpreted as a constant though resolving a constant for the namespace name is not supported (and should not! :) ) and results in an empty string being used. Test script: --------------- test.php: <?php define('a','\foo'); require 'a.php'; a.php: <?php namespace \a; var_dump(__NAMESPACE__); class b { } Expected result: ---------------- (Parse?) Error due to invalid namespace definition Actual result: -------------- Empty string for __NAMESPACE__ or undefined constant a depending wheter or not the file "a.php" got required or called directly