xref: /PHP-8.3/ext/opcache/tests/jit/gh10635.phpt (revision 08e75912)
1--TEST--
2GH-10635: Function JIT causes impossible assertion
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8--FILE--
9<?php
10trait T {
11	function foo() {
12		return reset($this->a);
13	}
14}
15class C {
16	use T;
17	private array $a = [1];
18}
19$o = new C;
20$o->foo();
21unset($o);
22$o = new C;
23$o->foo();
24unset($o);
25?>
26DONE
27--EXPECT--
28DONE
29