mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
17 lines
248 B
Plaintext
17 lines
248 B
Plaintext
|
--TEST--
|
||
|
Closure 024: Trying to clone the Closure object
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
$a = function () {
|
||
|
return clone function () {
|
||
|
return 1;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
$a();
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Fatal error: Trying to clone an uncloneable object of class Closure in %s on line %d
|