bug76711.phpt 310 B

12345678910111213141516171819
  1. --TEST--
  2. Bug #76711 OPcache enabled triggers false-positive "Illegal string offset"
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.optimization_level=-1
  7. --EXTENSIONS--
  8. opcache
  9. --FILE--
  10. <?php
  11. function test($foo) {
  12. var_dump(0);
  13. var_dump($foo[0]);
  14. }
  15. test("str");
  16. ?>
  17. --EXPECT--
  18. int(0)
  19. string(1) "s"