Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__dirname 和 __filename 输出 #18

Closed
harttle opened this issue Apr 19, 2019 · 0 comments
Closed

__dirname 和 __filename 输出 #18

harttle opened this issue Apr 19, 2019 · 0 comments
Assignees

Comments

@harttle
Copy link
Contributor

harttle commented Apr 19, 2019

应该输出为 __DIR____FILE__。一些观察到的点供参考:

  • php < 5.3 不支持 __DIR__,需要 dirname(__FILE__)
  • hhvm 中支持 __DIR__
@cxtom cxtom self-assigned this Apr 19, 2019
cxtom added a commit that referenced this issue Apr 19, 2019
@cxtom cxtom closed this as completed Apr 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants