#48261 [NEW]: Paamayim Nekudotayim on class variables

From: Date: Wed, 13 May 2009 13:15:59 +0000
Subject: #48261 [NEW]: Paamayim Nekudotayim on class variables
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-137252@lists.php.net to get a copy of this message
From: bla at bla dot com Operating system: Windows PHP version: 5.3.0RC2 PHP Bug Type: Scripting Engine problem Bug description: Paamayim Nekudotayim on class variables 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 bug report at http://bugs.php.net/?id=48261&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48261&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48261&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48261&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48261&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48261&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48261&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48261&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48261&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48261&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48261&r=support Expected behavior: http://bugs.php.net/fix.php?id=48261&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48261&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48261&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48261&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48261&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48261&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48261&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48261&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48261&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48261&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48261&r=mysqlcfg

« previous php.bugs (#137252) next »