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

for #520 #522

Merged
merged 1 commit into from
Oct 21, 2016
Merged

for #520 #522

merged 1 commit into from
Oct 21, 2016

Conversation

jinchun
Copy link
Contributor

@jinchun jinchun commented Oct 21, 2016

  1. 当服务器机器名没有指向一个ip地址的时候 gethostbyname() 将会得到一个非 ip 的字符串(通常是该机器名)
  2. $_SERVER['SERVER_ADDR'] 有时候不存在,使用 $_SERVER['SERVER_NAME'] 来尝试获取。

2. $_SERVER['SERVER_ADDR'] 有时候不存在,使用 $_SERVER['SERVER_NAME'] 来尝试获取。
 (for /issues/520)
@overtrue overtrue merged commit 3586a2e into w7corp:master Oct 21, 2016
@overtrue overtrue changed the title for https://github.com/overtrue/wechat/issues/520 for #520 Oct 21, 2016
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

Successfully merging this pull request may close these issues.

2 participants