1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 16:08:35 +02:00
Files
archived-php-src/ext/opcache/tests/jit/inc_obj_004.phpt
T
2021-10-11 14:10:02 +03:00

39 lines
541 B
PHP

--TEST--
PRE_INC_OBJ: 004
--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;
function foo() {
$this->prop = PHP_INT_MAX-5;
for ($i = 0; $i - 15; $i++) {
var_dump(++$this->prop);
}
}
}
$test = new Test;
$test->foo();
?>
--EXPECTF--
int(%d)
int(%d)
int(%d)
int(%d)
int(%d)
float(%f)
float(%f)
float(%f)
float(%f)
float(%f)
float(%f)
float(%f)
float(%f)
float(%f)
float(%f)