Created
May 18, 2012 08:45
-
-
Save balibali/2724046 to your computer and use it in GitHub Desktop.
PHP 5.3 で後方互換性がなくて Fatal error になるやつ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class A { | |
function A() { echo "bar\n"; } | |
} | |
class B extends A {} | |
class C extends B {} | |
class D extends C { | |
function D() { | |
parent::__construct(); | |
parent::A(); | |
parent::C(); | |
parent::B(); // (PHP 5.3) Fatal error: Call to undefined method C::B() | |
} | |
} | |
new D(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
関連
https://bugs.php.net/bug.php?id=52051