Git Product home page Git Product logo

Comments (8)

walkor avatar walkor commented on May 21, 2024

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

from workerman.

jackyxie avatar jackyxie commented on May 21, 2024

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

from workerman.

walkor avatar walkor commented on May 21, 2024

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

from workerman.

jackyxie avatar jackyxie commented on May 21, 2024

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

from workerman.

joostshao avatar joostshao commented on May 21, 2024

https://github.com/gophp7/gophp7-ext/wiki/extensions-catalog
为什么不能呢?

from workerman.

joelhy avatar joelhy commented on May 21, 2024

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

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

from workerman.

joelhy avatar joelhy commented on May 21, 2024

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

from workerman.

walkor avatar walkor commented on May 21, 2024

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

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

from workerman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.