jmp_elim_004.phpt 375 B

1234567891011121314151617181920212223242526
  1. --TEST--
  2. Incorrect empty basic block elimination
  3. --INI--
  4. opcache.enable_cli=1
  5. opcache.optimization_level=-1
  6. --EXTENSIONS--
  7. opcache
  8. --FILE--
  9. <?php
  10. function test() {
  11. $foo = "test";
  12. var_dump($foo ?? "default");
  13. $null = null;
  14. var_dump($null ?? 3);
  15. var_dump($null ?? new stdClass);
  16. }
  17. test();
  18. ?>
  19. --EXPECT--
  20. string(4) "test"
  21. int(3)
  22. object(stdClass)#1 (0) {
  23. }