unreachable_block.phpt 441 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. JIT unreachable_block with block order
  3. --INI--
  4. opcache.enable=1
  5. opcache.enable_cli=1
  6. opcache.file_update_protection=0
  7. opcache.jit_buffer_size=1M
  8. opcache.protect_memory=1
  9. --EXTENSIONS--
  10. opcache
  11. --FILE--
  12. <?php
  13. class A {
  14. public function Value()
  15. {
  16. switch ($this->returnType) {
  17. case 'float': return $this->returnTypeNullable ? null : 0;
  18. default: return;
  19. }
  20. }
  21. }
  22. ?>
  23. okey
  24. --EXPECT--
  25. okey