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

Reply via email to