From: [EMAIL PROTECTED] Operating system: RH 7.0 PHP version: 4.0 Latest CVS (30/01/2001) PHP Bug Type: Class/Object related Bug description: define()-ed values as assoc array keys don't work Take this script: <?php define(TEST_VAR, 100 ); class test_class { var $codes = array( TEST_VAR => "hello" ); } $x = new test_class; print_r($x->codes); ?> This outputs: Array ( [TEST_VAR] => hello ) whereas I figure it should output: Array ( [100] => hello ) No? -- Edit Bug report at: http://bugs.php.net/?id=9008&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]