From:             [EMAIL PROTECTED]
Operating system: Solaris
PHP version:      4.0.4pl1
PHP Bug Type:     *General Issues
Bug description:  static array doesn't evaluate defined keys

The following script doesn't work correctly.  It should
print "My Message: Hello World\nArray ( [1] => Hello [2] =>
World )".  Instead it prints "My Message: \nArray ( [FIRST]
=> Hello [SECOND] => World )".

  define("FIRST", 1);
  define("SECOND", 2);

  static $myArray = array(FIRST => "Hello", SECOND => "World");

  print("My Message:". $myArray[FIRST] ." ".
$myArray[SECOND] ."<BR>\n");

Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to