mirror of
https://github.com/php/php-src.git
synced 2026-04-25 17:08:14 +02:00
ca49a7bec2
RFC: https://wiki.php.net/rfc/clone_with_v2 Co-authored-by: Volker Dusch <volker@tideways-gmbh.com>
15 lines
290 B
PHP
15 lines
290 B
PHP
--TEST--
|
|
Bug #36071 (Engine Crash related with 'clone')
|
|
--INI--
|
|
error_reporting=4095
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
$a = clone 0;
|
|
} catch (Error $e) {
|
|
echo $e::class, ": ", $e->getMessage(), PHP_EOL;
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
TypeError: clone(): Argument #1 ($object) must be of type object, int given
|