xref: /PHP-8.1/ext/opcache/tests/opt/inline_001.phpt (revision 229e80c6)
1--TEST--
2Fuction inlining 001: FETCH_THIS is incompatible with unused result
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--FILE--
8<?php
9class Foo {
10    function __construct() {
11        Some::foo($this);
12    }
13}
14class Some {
15    static function foo() {
16    }
17}
18new Foo;
19?>
20DONE
21--EXPECT--
22DONE
23