xref: /php-src/Zend/tests/bug80072.phpt (revision 52cf7ab8)
1--TEST--
2Bug #80072: Cyclic unserialize in TMPVAR operand may leak
3--FILE--
4<?php
5
6try {
7    $s = 'O:8:"stdClass":1:{s:1:"x";r:1;}';
8    unserialize($s) % gc_collect_cycles();
9} catch (Error $e) {
10    echo $e->getMessage(), "\n";
11}
12
13$a[]=&$a == $a=&$b > gc_collect_cycles();
14
15?>
16--EXPECT--
17Unsupported operand types: stdClass % int
18