ID: 9008 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Duplicate Status: Closed Bug Type: Class/Object related Operating system: PHP Version: 4.0 Latest CVS (30/01/2001) Assigned To: Comments: Previous Comments: --------------------------------------------------------------------------- [2001-01-31 15:46:45] [EMAIL PROTECTED] See bug #8141. --------------------------------------------------------------------------- [2001-01-30 14:44:12] [EMAIL PROTECTED] 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? --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9008&edit=2 -- 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]