Created
January 17, 2012 10:06
-
-
Save MugeSo/1626063 to your computer and use it in GitHub Desktop.
$hoge.foo(); on php without any errors.
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
error_reporting(E_ALL); | |
function foo(){} | |
class Hoge{ public function __toString(){return "a";}} | |
$hoge = new Hoge(); | |
$hoge.foo();// Success! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment