Open
Conversation
include_once改为require 避免重复包含和嵌套引起bug
Contributor
|
error_reporting 应该一直是 |
|
include_once 如果该文件已经包含,则不会再次包含。 |
Author
|
入口文件用once(或者过于依赖once)并不是一个好主意 |
Contributor
|
@lichunqiang 我同意 @koboshi 关于 include_once 的意见。 |
|
@picasso250 @koboshi |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
include_once改为require
避免重复包含和嵌套引起bug
错误信息显示与否现在可通过常量DEBUG控制