xref: /PHP-8.1/ext/opcache/tests/opt/sccp_035.phpt (revision 2b81156f)
1--TEST--
2SCCP 035: memory leak
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--FILE--
8<?php
9function test() {
10  $obj = new stdClass;
11  $obj->$b = ~$b = $a='';
12  $obj->$a--;
13}
14?>
15DONE
16--EXPECT--
17DONE
18