summaryrefslogtreecommitdiff
path: root/tests/classes/clone_005.phpt
blob: bfe4d66d6fa5fa262ddaf88856441e53f95c09cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--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