mirror of
https://github.com/php/php-src.git
synced 2024-12-15 12:54:57 +08:00
25 lines
298 B
PHP
25 lines
298 B
PHP
--TEST--
|
|
Bug #40784 (Case sensivity in constructor's fallback)
|
|
--FILE--
|
|
<?php
|
|
|
|
class A {
|
|
function A () { echo "I'm A\n"; }
|
|
}
|
|
|
|
class B extends A {
|
|
function __construct() {
|
|
parent::__construct();
|
|
parent::__constrUct();
|
|
}
|
|
}
|
|
|
|
$b = new B;
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
I'm A
|
|
I'm A
|
|
Done
|