summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/jit/send_var_ex_001.phpt
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2019-04-01 10:27:11 +0300
committerDmitry Stogov <dmitry@zend.com>2019-04-01 10:27:11 +0300
commit9a06876072b9ccb023d4a14426ccb587f10882f3 (patch)
treecd996a1a7ebdb99d9da9fbf3f5a35e1fe8193903 /ext/opcache/tests/jit/send_var_ex_001.phpt
parenta0fbb64fa3f68a9993b8dc12abb1524f4e0c5c3b (diff)
downloadphp-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.phpt30
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