mirror of
https://github.com/php/php-src.git
synced 2026-04-22 23:48:14 +02:00
Remove __clone test (not reason it should error)
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
--TEST--
|
||||
errmsg: cannot call __clone() method on objects
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
class test {
|
||||
function __clone() {
|
||||
}
|
||||
}
|
||||
|
||||
$t = new test;
|
||||
$t->__clone();
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
Fatal error: Cannot call __clone() method on objects - use 'clone $obj' instead in %s on line %d
|
||||
Reference in New Issue
Block a user