ID: 43344 Updated by: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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
