diff options
Diffstat (limited to 'Zend/tests/errmsg_034.phpt')
-rw-r--r-- | Zend/tests/errmsg_034.phpt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Zend/tests/errmsg_034.phpt b/Zend/tests/errmsg_034.phpt new file mode 100644 index 0000000..1494fe5 --- /dev/null +++ b/Zend/tests/errmsg_034.phpt @@ -0,0 +1,15 @@ +--TEST-- +errmsg: __clone() cannot be static +--FILE-- +<?php + +class test { + + static function __clone() { + } +} + +echo "Done\n"; +?> +--EXPECTF-- +Fatal error: Clone method test::__clone() cannot be static in %s on line %d |