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

31 lines
543 B
PHP

--TEST--
JIT SEND_VAR_EX fails on SHOULD_SEND_BY_REF checking
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
;opcache.jit_debug=257
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
namespace A;
class A {
private $evalParameters;
public function evaluate() {
$this->evalParameters = array("a" => "okey");
extract($this->evalParameters, EXTR_SKIP);
echo $a;
return false;
}
}
$a = new A();
$a->evaluate();
?>
--EXPECT--
okey