xref: /php-src/ext/opcache/tests/opt/sccp_038.phpt (revision d8696f92)
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--EXPECTF--
18Deprecated: Increment on non-alphanumeric string is deprecated in %ssccp_038.php on line 5
19DONE
20