summaryrefslogtreecommitdiff
path: root/tests/classes/final_ctor2.phpt
blob: 905337b4081ce8d5b94bda51472d73ba93374f95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--TEST--
ZE2 cannot override final old style ctor
--FILE--
<?php

class Base
{
	public final function Base()
	{
	}
}

class Works extends Base
{
}

class Extended extends Base
{
	public function __construct()
	{
	}
}

ReflectionClass::export('Extended');

?>
--EXPECTF--

Fatal error: Cannot override final Base::Base() with Extended::__construct() in %sfinal_ctor2.php on line %d