xref: /PHP-8.1/Zend/tests/bug36071.phpt (revision d679f022)
1--TEST--
2Bug #36071 (Engine Crash related with 'clone')
3--INI--
4error_reporting=4095
5--FILE--
6<?php
7$a = clone 0;
8$a[0]->b = 0;
9?>
10--EXPECTF--
11Fatal error: Uncaught Error: __clone method called on non-object in %sbug36071.php:2
12Stack trace:
13#0 {main}
14  thrown in %sbug36071.php on line 2
15