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