xref: /PHP-8.0/ext/opcache/tests/opt/sccp_038.phpt (revision 151d2ac5)
1--TEST--
2SCCP 038: Memory leak
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--FILE--
8<?php
9function foo() {
10    $obj = new stdClass;
11    $obj->$b = ~$b = $a = '##';
12    $obj->$a++;
13}
14foo();
15?>
16DONE
17--EXPECT--
18DONE
19