jmpz_001.phpt 507 B

1234567891011121314151617181920212223242526
  1. --TEST--
  2. JIT JMPZ: JMPZ may require code for "smart branch" and at the same time be a target of another JMP.
  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. namespace A;
  14. function test() {
  15. $modelData = array();
  16. $ret = false ||
  17. ((is_array($modelData) || $modelData instanceof \Countable) && true) || false;
  18. return $ret;
  19. }
  20. var_dump(test());
  21. ?>
  22. --EXPECT--
  23. bool(true)