diff options
author | Dmitry Stogov <dmitry@zend.com> | 2020-09-21 21:53:03 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2020-09-21 21:53:03 +0300 |
commit | 5a085777b7f5fc015b885be928efc244a5e89e1f (patch) | |
tree | db249bca69ea0299fa8f3919c1955f39277f0139 /ext/opcache/tests/jit | |
parent | ddd99a700563af06e8897901abf87e5da73009e6 (diff) | |
download | php-git-5a085777b7f5fc015b885be928efc244a5e89e1f.tar.gz |
Fixed incorrect JIT for FETCH_THIS+SEND_REF
Diffstat (limited to 'ext/opcache/tests/jit')
-rw-r--r-- | ext/opcache/tests/jit/send_ref_001.phpt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ext/opcache/tests/jit/send_ref_001.phpt b/ext/opcache/tests/jit/send_ref_001.phpt new file mode 100644 index 0000000000..55a2359038 --- /dev/null +++ b/ext/opcache/tests/jit/send_ref_001.phpt @@ -0,0 +1,26 @@ +--TEST-- +JIT SEND_REF: 001 +--INI-- +opcache.enable=1 +opcache.enable_cli=1 +opcache.file_update_protection=0 +opcache.jit_buffer_size=1M +--SKIPIF-- +<?php require_once('skipif.inc'); ?> +--FILE-- +<?php +function foo(&$obj) { +} +class A { + function foo() { + for ($i = 0; $i < 10; $i++) { + foo($this); + } + echo "ok\n"; + } +} +$a = new A; +$a->foo(); +?> +--EXPECT-- +ok |