xref: /PHP-8.1/ext/opcache/tests/jit/mod_005.phpt (revision 2515e788)
1--TEST--
2JIT MOD: 005
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8opcache.protect_memory=1
9--FILE--
10<?php
11class Test{
12    public $prop = 32;
13}
14
15function test2($test) {
16    $test->prop %= 3;
17	return $test;
18}
19
20var_dump(test2(new Test));
21?>
22--EXPECT--
23object(Test)#1 (1) {
24  ["prop"]=>
25  int(2)
26}
27