php-src/tests/classes/clone_005.phpt
2003-07-03 19:53:01 +00:00

20 lines
358 B
PHP
Executable File

--TEST--
ZE2 object cloning, 5
--FILE--
<?php
abstract class base {
public $a = 'base';
// disallow cloning once forever
final private function __clone() {}
}
class test extends base {
// reenabling should fail
public function __clone() {}
}
?>
--EXPECTF--
Fatal error: Cannot override final method base::__clone() in %sclone_005.php on line %d