sniper          Sun Jan 11 09:00:08 2004 EDT

  Added files:                 (Branch: PHP_4_3)
    /php-src/tests/lang bug26869.phpt 
  Log:
  MFH: test for bug #26869
  

Index: php-src/tests/lang/bug26869.phpt
+++ php-src/tests/lang/bug26869.phpt
--TEST--
Bug #26869 (constant as the key of static array)
--FILE--
<?php
        define("A", "1");
        static $a=array(A => 1);
        var_dump($a);
        var_dump(isset($a[A]));
?>
--EXPECT--
array(1) {
  [1]=>
  int(1)
}
bool(true)

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to