#43344 [Asn->Csd]: Wrong error message for namespace::constant
| From: | dmitry@php.net | Date: | Fri, 07 Dec 2007 17:12:40 +0000 |
| Subject: | #43344 [Asn->Csd]: Wrong error message for namespace::constant | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-120459@lists.php.net to get a copy of this message | ||
ID: 43344
Updated by: dmitry@php.net
Reported By: felipensp at gmail dot com
-Status: Assigned
+Status: Closed
Bug Type: Scripting Engine problem
PHP Version: 5.3CVS-2007-11-20 (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.
Previous Comments:
------------------------------------------------------------------------
[2007-11-24 12:32:59] jani@php.net
Another namespace issue.
------------------------------------------------------------------------
[2007-11-20 11:11:42] felipensp at gmail dot com
Description:
------------
See the error message below.
Reproduce code:
---------------
<?php
namespace foobar;
class foobar {
const bar = 'foobar!';
}
var_dump(namespace::bar); // Fatal error: Class 'foobar' not found
// var_dump(namespace::foobar::bar); # Ok, right
Expected result:
----------------
Some like "Constant 'bar' not found"
Actual result:
--------------
Fatal error: Class 'foobar' not found
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43344&edit=1