bug48215_2.phpt 476 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
--TEST--
Bug #48215 - parent::method() calls __construct, case sensitive test
--FILE--
<?php
class a {
	public function __CONSTRUCT() { echo __METHOD__ . "\n"; }
	public function a() { echo __METHOD__ . "\n"; }
}
class b extends a {}
class c extends b { 
	function C() {
		b::b();
	}
}
$c = new c();
?>
===DONE===
--EXPECTF--

Strict Standards: Redefining already defined constructor for class a in %s on line %d

Fatal error: Call to undefined method b::b() in %s on line %d