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

Support for ZeroMQ #1214

Closed
ghost opened this issue Oct 25, 2013 · 20 comments
Closed

Support for ZeroMQ #1214

ghost opened this issue Oct 25, 2013 · 20 comments

Comments

@ghost
Copy link

ghost commented Oct 25, 2013

http://zeromq.org/bindings:php

@scannell
Copy link
Contributor

Thanks for reporting this. We're working on an experiment to load Zend PHP extensions as-is. Failing that, someone could port it as we now support loading extensions (built for HHVM) dynamically as .sos. It's not something we're likely to work on any time soon though.

@typerandom
Copy link

Would also like this. Been looking at doing the port myself, but seems like a bit of a project. HHVM supporting Zend PHP extensions definitely seems like the way to go.

@JeremyHutchings
Copy link

👍

@duxet
Copy link

duxet commented Apr 9, 2014

I am now working on https://github.com/duxet/hhvm-zmq. At the moment i am able to send and receive messages.

@rotor-head
Copy link

A year later since the last entry. I see an entry for 0mq in the HHVM extensions list - does this mean it's on the road map for integration? Is there a timeline for including zeromq in HHVM?

@paulbiss
Copy link
Contributor

I don't see any entry in our extension list. There's an externally maintained extension (linked above), I'm not aware of any plans to upstream it into hhvm though.

@rotor-head
Copy link

Thanks Paul. Sadly - it's not on the github list. It is in the docs manual: http://docs.hhvm.com/manual/en/book.zmq.php Though it does state not currently implemented, it lends itself to wondering about implementation in the core.

We'd love to use HHVM for our production app, zeromq is a key component of our app.

Currently, hhvm-zmq isn't working on CentOS 7.

@paulbiss
Copy link
Contributor

The docs are forked directly from PHP, hence the inclusion of extensions not currently part of hhvm. No one here is currently working on zeromq, unfortunately.

I don't have the bandwidth right now to take it on myself, but I'm happy to help anyone that wants to work on it and runs into specific issues related to hhvm.

@rotor-head
Copy link

Thanks for the clarification. We may pursue the option to build it or get it built. Bandwidth is in limited supply these days.

@SiebelsTim
Copy link
Contributor

Note, that on every Requirement and/or Installation page of an extension, there's a note if it's available or not:
http://docs.hhvm.com/manual/en/zmq.requirements.php

@paulm17
Copy link

paulm17 commented Apr 13, 2015

@rotor-head and anyone else. Please take a look at https://github.com/no1youknowz/hhvm-zeromq-ext this works for me 90% and it's being used in a production env.

I'd love some help in getting things that work in PHP to work with this (in hhvm) 100%.

I've tested it with push/pull, pub/sub, getsocket, poll. I don't know c++ really, so any help and contributions welcome.

@rotor-head
Copy link

Thanks for posting! .. I'll check it out on our app and give will give feedback on what we experience.

@SiebelsTim
Copy link
Contributor

Can this be closed as there is an externally provided extension?

@rotor-head
Copy link

Yes

On Aug 27, 2015, at 08:01, Tim Siebels notifications@github.com wrote:

Can this be closed as there is an externally provided extension?


Reply to this email directly or view it on GitHub.

@paulm17
Copy link

paulm17 commented Aug 27, 2015

This works with 3.9 thanks to Orvid on #hhvm irc.

I wish the good folks at hhvm took the plugin in-house.

@JoelMarcey
Copy link
Contributor

I am going to close this out since there is an extension

@fredemmott Didn't we consider ZeroMQ at one point and weren't going to implement it ourselves, but now that there is an extension, do we consider merging that in to our codebase? Or do we leave it as a pluggable extension outside hhvm?

@scragg0x
Copy link

Can the 3rd party extension be included in the official build? Seems like an important one to leave out. :(

@jwatzman
Copy link
Contributor

Not unless we pull it into our code tree, sorry.

@Orvid
Copy link
Contributor

Orvid commented Oct 15, 2015

Unfortunately, due to the inability to the way the implementation linked above is, getting the licensing sorted out would be nearly impossible. It also has various other issues with the implementation.

For that reason, I did a fresh port of the PECL extension to HNI, so that the licensing is significantly easier to sort out. To my knowledge it supports everything the original PECL extension did, and is available here: https://github.com/Orvid/php-zmq

@scragg0x
Copy link

scragg0x commented Dec 1, 2015

Thanks for creating that @Orvid . What is the next step here? Can @jwatzman pull the code into HHVM?

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

No branches or pull requests