summaryrefslogtreecommitdiff
path: root/Zend/tests/bug43200_2.phpt
blob: 5efc5facffebf8c1327244b4128780ac97f772f9 (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
--TEST--
Bug #43200.2 (Interface implementation / inheritence not possible in abstract classes)
--FILE--
<?php

interface A {
	function foo();
}

abstract class B implements A {
	abstract public function foo();
}

class C extends B {
	public function foo() {
		echo 'works';
	}
}

$o = new C();
$o->foo();

?>
--EXPECTF--
works