xref: /PHP-7.2/Zend/tests/bug42818.phpt (revision f1d7e3ca)
1--TEST--
2Bug #42818 ($foo = clone(array()); leaks memory)
3--FILE--
4<?php
5$foo = clone(array());
6?>
7--EXPECTF--
8Fatal error: Uncaught Error: __clone method called on non-object in %sbug42818.php:2
9Stack trace:
10#0 {main}
11  thrown in %sbug42818.php on line 2
12