bug69125.phpt 315 B

12345678910111213141516171819202122
  1. --TEST--
  2. Bug #69125 (Array numeric string as key)
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. --EXTENSIONS--
  7. opcache
  8. --FILE--
  9. <?php
  10. const SZERO = '0';
  11. const SONE = '1';
  12. $array[SZERO] = "okey";
  13. $array[1] = "okey";
  14. var_dump($array[SZERO]);
  15. var_dump($array[SONE]);
  16. ?>
  17. --EXPECT--
  18. string(4) "okey"
  19. string(4) "okey"