PHP 4.0 Bug #8141: "define" as array index in class definition is ignored
| From: | hp at oeri dot ch | Date: | Wed, 06 Dec 2000 21:36:07 +0000 |
| Subject: | PHP 4.0 Bug #8141: "define" as array index in class definition is ignored | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-40257@lists.php.net to get a copy of this message | ||
From: hp@oeri.ch
Operating system: Linux 2.2.17
PHP version: 4.0.3pl1
PHP Bug Type: Class/Object related
Bug description: "define" as array index in class definition is ignored
In the snippet below, the array entry "ABC"=>1 is simply ignored. An array
OUTSIDE of a class definition is fine!
<?
define( "ABC", 8 );
class test {
var $t = array( ABC => 1, 2 => 3 );
}
$u = New test();
var_dump( $u );
?>
--
Edit Bug report at: http://bugs.php.net/?id=8141&edit=1