Last active
August 29, 2015 14:20
-
-
Save jonnung/df2504c2094e2661e0bf to your computer and use it in GitHub Desktop.
중복 require 되었을때
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 | |
if (!isset($conf)) { | |
$conf = 1; | |
} | |
$conf += 1; | |
return $conf; |
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 'default.php'; | |
$conf = require 'file1.php'; | |
if (!debug_backtrace()) { | |
echo $conf; | |
} |
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 | |
$conf = require 'default.php'; | |
if (!debug_backtrace()) { | |
echo $conf; | |
} else { | |
return $conf; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment