1--TEST--
2Reflection class can not be cloned
3--CREDITS--
4Stefan Koopmanschap <stefan@phpgg.nl>
5TestFest PHP|Tek
6--SKIPIF--
7<?php
8if (!extension_loaded('reflection')) print 'skip';
9?>
10--FILE--
11<?php
12$rc = new ReflectionClass("stdClass");
13$rc2 = clone($rc);
14--EXPECTF--
15Fatal error: Uncaught Error: Trying to clone an uncloneable object of class ReflectionClass in %s:%d
16Stack trace:
17#0 {main}
18  thrown in %s on line %d
19