ID:               48261
 Updated by:       [email protected]
 Reported By:      bla at bla dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Windows
 PHP Version:      5.3.0RC2
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

.


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

[2009-05-13 13:15:59] bla at bla dot com

Description:
------------
just look @ the code

Reproduce code:
---------------
<?php
class A {
    public $b;
    public function __construct() {
        $this->b = new B;
    }
}
class B {
    const text = "Hello World";
}
$a = new A;
var_dump($a);
var_dump($a->b);
var_dump($a->b::text);      // Error
var_dump(($a->b)::text);    // Error
$b = $a->b;
var_dump($b::text);         // Works
?>



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


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

Reply via email to