#48261 [Opn->Bgs]: Paamayim Nekudotayim on class variables
| From: | derick@php.net | Date: | Wed, 13 May 2009 13:21:19 +0000 |
| Subject: | #48261 [Opn->Bgs]: Paamayim Nekudotayim on class variables | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-137253@lists.php.net to get a copy of this message | ||
ID: 48261
Updated by: derick@php.net
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