xref: /PHP-8.0/ext/opcache/tests/jit/bug80786.phpt (revision 79cf2c56)
1--TEST--
2Bug #80786: PHP crash using JIT
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.jit_buffer_size=1M
7opcache.jit=function
8--FILE--
9<?php
10
11$a = new Test();
12$a->TestFunc();
13var_dump($a->value);
14
15class Test{
16	public $value = 11.3;
17
18	public function TestFunc() {
19		$this->value -= 10;
20	}
21}
22
23?>
24--EXPECT--
25float(1.3000000000000007)
26