ID:          42819
 Updated by:  [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
-Status:      Assigned
+Status:      Closed
 Bug Type:    Scripting Engine problem
 PHP Version: 5CVS-2007-10-01 (CVS)
 Assigned To: dmitry
 New Comment:

The bug wasn't rerated to self:: but to conflict between constant
indexes and namespaces. It is fixed in CVS HEAD and PHP_5_3.


Previous Comments:
------------------------------------------------------------------------

[2007-10-01 19:10:05] [EMAIL PROTECTED]

I can verify the bug, Dmitry please take a look at it, thanks.

------------------------------------------------------------------------

[2007-10-01 19:07:35] [EMAIL PROTECTED]

Description:
------------
PHP searches for a class named foo when accessing "self::", without the
E_NOTICE this script works as expected

Reproduce code:
---------------
<?php
namespace foo;
class Bar {

    static protected
        $foo = array(
            E_NOTICE => 'foo'
        ),
        $bang = 'bang';

    static public function baz() {
        echo self::$bang;
    }

}

foo::Bar::baz();

Expected result:
----------------
bang

Actual result:
--------------
Fatal error: Class 'foo' not found in ... on line 12


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42819&edit=1

Reply via email to