#43344 [Opn->Asn]: Wrong error message for namespace::constant

From: Date: Sat, 24 Nov 2007 12:32:59 +0000
Subject: #43344 [Opn->Asn]: Wrong error message for namespace::constant
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-120017@lists.php.net to get a copy of this message
ID: 43344 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-20 (snap) -Assigned To: +Assigned To: dmitry New Comment: Another namespace issue. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#120017) next »