summaryrefslogtreecommitdiff
path: root/Zend/tests/errmsg_014.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/errmsg_014.phpt')
-rw-r--r--Zend/tests/errmsg_014.phpt17
1 files changed, 17 insertions, 0 deletions
diff --git a/Zend/tests/errmsg_014.phpt b/Zend/tests/errmsg_014.phpt
new file mode 100644
index 0000000000..77e12b05e9
--- /dev/null
+++ b/Zend/tests/errmsg_014.phpt
@@ -0,0 +1,17 @@
+--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