Created
July 15, 2010 08:24
-
-
Save fivestar/476659 to your computer and use it in GitHub Desktop.
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 | |
namespace bar; | |
class Test {} |
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 | |
namespace foo; | |
use bar\Test; | |
class AnotherTest {} |
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 | |
namespace foo; | |
class Test {} |
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 | |
require './foo_Test.php'; // これを"foo_AnotherTest.php"より「先に」読み込むとエラーになる | |
require './bar_Test.php'; | |
require './foo_AnotherTest.php'; | |
// PHP Fatal error: Cannot use bar\Test as Test because the name is already in use in /home/fivestar/phpfuck/foo/AnotherTest.php on line 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment