bug74456.phpt 355 B

123456789101112131415161718192021222324
  1. --TEST--
  2. Bug #74456 (Segmentation error while running a script in CLI mode)
  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 small_numbers() {
  12. return [0,1,2];
  13. }
  14. list ($zero, $one, $two) = small_numbers();
  15. var_dump($zero, $one, $two);
  16. ?>
  17. --EXPECT--
  18. int(0)
  19. int(1)
  20. int(2)