php-8.0.30-src/ext/opcache/tests/jit/jmpz_001.phpt

27 lines
532 B
PHP

--TEST--
JIT JMPZ: JMPZ may require code for "smart branch" and at the same time be a target of another JMP.
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.protect_memory=1
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
namespace A;
function test() {
$modelData = array();
$ret = false ||
((is_array($modelData) || $modelData instanceof \Countable) && true) || false;
return $ret;
}
var_dump(test());
?>
--EXPECT--
bool(true)