dis-bench / src /php /php-src /Zend /tests /gc /bug80072.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
332 Bytes
--TEST--
Bug #80072: Cyclic unserialize in TMPVAR operand may leak
--FILE--
<?php
try {
$s = 'O:8:"stdClass":1:{s:1:"x";r:1;}';
unserialize($s) % gc_collect_cycles();
} catch (Error $e) {
echo $e->getMessage(), "\n";
}
$a[]=&$a == $a=&$b > gc_collect_cycles();
?>
--EXPECT--
Unsupported operand types: stdClass % int