xref: /PHP-8.1/ext/opcache/tests/jit/bug80786.phpt (revision e9f783fc)
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--EXTENSIONS--
9opcache
10--FILE--
11<?php
12
13$a = new Test();
14$a->TestFunc();
15var_dump($a->value);
16
17class Test{
18	public $value = 11.3;
19
20	public function TestFunc() {
21		$this->value -= 10;
22	}
23}
24
25?>
26--EXPECT--
27float(1.3000000000000007)
28