diff options
author | Dmitry Stogov <dmitry@zend.com> | 2019-04-01 10:27:11 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2019-04-01 10:27:11 +0300 |
commit | 9a06876072b9ccb023d4a14426ccb587f10882f3 (patch) | |
tree | cd996a1a7ebdb99d9da9fbf3f5a35e1fe8193903 /ext/opcache/tests/jit/send_var_ex_001.phpt | |
parent | a0fbb64fa3f68a9993b8dc12abb1524f4e0c5c3b (diff) | |
download | php-git-9a06876072b9ccb023d4a14426ccb587f10882f3.tar.gz |
Added JIT compiler for x86 and x86_64
Diffstat (limited to 'ext/opcache/tests/jit/send_var_ex_001.phpt')
-rw-r--r-- | ext/opcache/tests/jit/send_var_ex_001.phpt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/ext/opcache/tests/jit/send_var_ex_001.phpt b/ext/opcache/tests/jit/send_var_ex_001.phpt new file mode 100644 index 0000000000..369f9759a8 --- /dev/null +++ b/ext/opcache/tests/jit/send_var_ex_001.phpt @@ -0,0 +1,30 @@ +--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 |