2009-06-19 11:29:47 +08:00
|
|
|
--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 {
|
2015-03-31 22:10:06 +08:00
|
|
|
function __construct() {
|
2009-06-19 11:29:47 +08:00
|
|
|
b::b();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$c = new c();
|
|
|
|
?>
|
|
|
|
===DONE===
|
|
|
|
--EXPECTF--
|
2015-05-18 00:35:18 +08:00
|
|
|
Fatal error: Uncaught EngineException: Call to undefined method b::b() in %s:%d
|
2015-05-16 03:04:07 +08:00
|
|
|
Stack trace:
|
|
|
|
#0 %s(%d): c->__construct()
|
|
|
|
#1 {main}
|
|
|
|
thrown in %s on line %d
|