mirror of
https://github.com/php/php-src.git
synced 2026-03-26 09:12:14 +01:00
This implements a reduced variant of #1226 with just the following change: -Fatal error: Uncaught exception 'EngineException' with message 'Call to private method foo::bar() from context ''' in %s:%d +Fatal error: Uncaught EngineException: Call to private method foo::bar() from context '' in %s:%d The '' wrapper around messages is very weird if the exception message itself contains ''. Futhermore having the message wrapped in '' doesn't work for the "and defined" suffix of TypeExceptions.
19 lines
427 B
PHP
19 lines
427 B
PHP
--TEST--
|
|
Reflection class can not be cloned
|
|
--CREDITS--
|
|
Stefan Koopmanschap <stefan@phpgg.nl>
|
|
TestFest PHP|Tek
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('reflection)) print 'skip';
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$rc = new ReflectionClass("stdClass");
|
|
$rc2 = clone($rc);
|
|
--EXPECTF--
|
|
Fatal error: Uncaught EngineException: Trying to clone an uncloneable object of class ReflectionClass in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|