xref: /PHP-5.3/Zend/tests/closure_024.phpt (revision e0625942)
1--TEST--
2Closure 024: Trying to clone the Closure object
3--FILE--
4<?php
5
6$a = function () {
7	return clone function () {
8		return 1;
9	};
10};
11
12$a();
13
14?>
15--EXPECTF--
16Fatal error: Trying to clone an uncloneable object of class Closure in %s on line %d
17