Skip to content

Instantly share code, notes, and snippets.

@jonnung
Last active August 29, 2015 14:20
Show Gist options
  • Save jonnung/df2504c2094e2661e0bf to your computer and use it in GitHub Desktop.
Save jonnung/df2504c2094e2661e0bf to your computer and use it in GitHub Desktop.
중복 require 되었을때
<?php
if (!isset($conf)) {
$conf = 1;
}
$conf += 1;
return $conf;
<?php
require 'default.php';
$conf = require 'file1.php';
if (!debug_backtrace()) {
echo $conf;
}
<?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