#43359 [Opn->Asn]: Namespace accepts incorrect name
| From: | jani@php.net | Date: | Sat, 24 Nov 2007 12:30:58 +0000 |
| Subject: | #43359 [Opn->Asn]: Namespace accepts incorrect name | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-120014@lists.php.net to get a copy of this message | ||
ID: 43359
Updated by: jani@php.net
Reported By: felipensp at gmail dot com
-Status: Open
+Status: Assigned
Bug Type: Scripting Engine problem
PHP Version: 5.3CVS-2007-11-21 (snap)
-Assigned To:
+Assigned To: dmitry
New Comment:
Another namespace issue.
Previous Comments:
------------------------------------------------------------------------
[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