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

php7 Timer定时器使用异常worker[none:28567] exit with status 139 #58

Closed
jackyxie opened this issue Mar 9, 2016 · 8 comments
Closed
Labels

Comments

@jackyxie
Copy link

jackyxie commented Mar 9, 2016

这种情况如何排查问题?
timer

@walkor
Copy link
Owner

walkor commented Mar 9, 2016

139是进程收到SIGSEGV信号推出了,应该是Libevnet扩展coredump了。
PHP7的Libevent扩展还没stable,等等再用吧。
或者用ev扩展试下(注意php7版本的ev也没stable)

@jackyxie
Copy link
Author

那目前就暂时用不了libevent咯?

@walkor
Copy link
Owner

walkor commented Mar 10, 2016

PHP7 目前还暂时用不了libevent。小于PHP7的版本可以用

@jackyxie
Copy link
Author

哦,好的。忘了是 reusePort才需要php7

@joostshao
Copy link

@walkor walkor closed this as completed Mar 14, 2016
@joelhy
Copy link
Contributor

joelhy commented Mar 16, 2016

PHP7用户可以用Event扩展。注意:Event扩展只支持PHP 5.4+。
libevent扩展,最后更新时间为2013年5月22号,不可能有考虑PHP 7兼容性,不推荐在 PHP 7上使用。
或者使用ev扩展,新版本也有考虑 PHP 7兼容性。

@walkor 建议Workerman\Events里增加对 Event 扩展的支持,并在文档中优先推荐使用这个扩展。

@joelhy
Copy link
Contributor

joelhy commented Mar 16, 2016

@walkor 如果启用 Event 扩展支持,示例程序代码Applications/*/Event.php:workerman-chatworkerman-todpole的 Event 类名需要更改成其他名称,或者加上 namespace 以防命名冲突。

@walkor
Copy link
Owner

walkor commented Mar 16, 2016

感谢 @joelhy 的建议
workerman已经支持了ev扩展。
Event 扩展也会支持,具体时间还没定。

GatewayWorker框架已经支持自定义Event.php的类名,可以避免冲突,但是默认类名仍然是Event,如果要支持Event扩展,还是要兼容下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants