1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 22:41:20 +02:00
Files
archived-php-src/ext/opcache/tests/jit/mod_005.phpt
Dmitry Stogov 2515e788bc JIT: Fix register clobbering
Fixes oss-fuzz #41621
2021-12-03 11:13:50 +03:00

27 lines
356 B
PHP

--TEST--
JIT MOD: 005
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.file_update_protection=0
opcache.jit_buffer_size=1M
opcache.protect_memory=1
--FILE--
<?php
class Test{
public $prop = 32;
}
function test2($test) {
$test->prop %= 3;
return $test;
}
var_dump(test2(new Test));
?>
--EXPECT--
object(Test)#1 (1) {
["prop"]=>
int(2)
}