bug77215.phpt 431 B

123456789101112131415161718192021222324
  1. --TEST--
  2. Bug #77215: CFG assertion failure on multiple finalizing switch frees in one block
  3. --INI--
  4. opcache.enable_cli=1
  5. opcache.optimization_level=-1
  6. --EXTENSIONS--
  7. opcache
  8. --FILE--
  9. <?php
  10. function _crash($eValeur) {
  11. switch ($eValeur["a"]) {
  12. default:
  13. switch($eValeur["a"]) {
  14. default:
  15. return 2;
  16. }
  17. }
  18. }
  19. var_dump(_crash(["a" => "b"]));
  20. ?>
  21. --EXPECT--
  22. int(2)