-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
Yar在OS X上执行失败,但是Linux上执行正常[已解决,是php开启--with-debug编译参数的问题] #46
Comments
发现是php编译的时候带上了--with-debug的参数导致了这个问题,如果是干净的安装,就没有这个问题了 另外在问题还存在时,我通过土办法在yar_server.c里面插了大量的DEBUG_S代码,然后发现出现问题的似乎是php_yar_server_handle对于raw_data和payload的处理上,那里payload赋值之后用DEBUG_S打印出来的值是乱码(我看源码上下文似乎应该打印出来的是JSON, PHP, MSGPACK的三个值吧) |
你是否打开了display_errors? |
反复确认是关闭的 |
php7 打开 display_errors 确实会连接不上 不明原因 |
dispaly_errors你有了任何的错误就会直接输出, 从而破坏了yar协议的传输格式. |
在Mac上客户端报的错误是:
error_log中的服务器端的错误是
用的代码就是官网提供的例子,如下:
调用代码
Mac上测试了1.2.3和1.2.4
Linux上面只测试了1.2.3
PHP是homebrew-php的php56
The text was updated successfully, but these errors were encountered: