xref: /PHP-7.4/Zend/tests/bug42818.phpt (revision d679f022)
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