#43359 [Asn->Csd]: Namespace accepts incorrect name
| From: | felipe@php.net | Date: | Fri, 18 Jan 2008 18:44:21 +0000 |
| Subject: | #43359 [Asn->Csd]: Namespace accepts incorrect name | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-121394@lists.php.net to get a copy of this message | ||
ID: 43359
Updated by: felipe@php.net
Reported By: felipensp at gmail dot com
-Status: Assigned
+Status: Closed
Bug Type: Scripting Engine problem
PHP Version: 5.3CVS-2007-11-21 (snap)
Assigned To: dmitry
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Already fixed by Dmitry...
Previous Comments:
------------------------------------------------------------------------
[2007-11-24 12:30:58] jani@php.net
Another namespace issue.
------------------------------------------------------------------------
[2007-11-21 11:12:51] felipensp at gmail dot com
Description:
------------
See the code below.
Reproduce code:
---------------
<?php
namespace ::foo;
var_dump(__NAMESPACE__); // string(0) ""
---
<?php
namespace ::foo::bar; // Fatal error: Class 'foo' not found
Expected result:
----------------
Fatal error with other message in both
Actual result:
--------------
string(0) ""
---
Fatal error: Class 'foo' not found
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43359&edit=1