bug80194.phpt 385 B

12345678910111213141516171819202122
  1. --TEST--
  2. Bug #80194: Assertion failure during block assembly of unreachable free with leading nop
  3. --FILE--
  4. <?php
  5. function test($x) {
  6. switch ($x->y) {
  7. default:
  8. throw new Exception;
  9. case 'foobar':
  10. return new stdClass();
  11. break;
  12. }
  13. }
  14. $x = (object)['y' => 'foobar'];
  15. var_dump(test($x));
  16. ?>
  17. --EXPECT--
  18. object(stdClass)#2 (0) {
  19. }