Giter Site home page Giter Site logo

hhvm-zmq's Introduction

hhvm-zmq

ZMQ extension for HHVM. Shall be compatible with existing PHP binding.

Building and installation

./build.sh

Please remember that first you need to build HHVM from source. If you need help with that, take a look at HHVM Wiki.

Also: don't forgot about installing libzmq. Currently only versions >= 4.0 are supported.

Tests

./test.sh

hhvm-zmq's People

Contributors

duxet avatar kilyo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

kilyo

hhvm-zmq's Issues

Can't get extension to work

Hi,

After compiling I'm getting:

test.sh: line 11: 66361 Segmentation fault ${HPHP_HOME}/hhvm -vDynamicExtensions.0=${DIRNAME}/zmq.so ${DIRNAME}/test.php

I am running Centos 7 minimal, Zeromq 4.0.5 installed and latest hhvm 3.6.0.

Thanks

Add getSockOpt support

Thanks for your work in adding zmq functionality to hhvm! Do you plan to implement ZMQSocket::getSockOpt any time soon?

Problem with appending null (0x00)

When mixing PHP scripts as receiver and HHVM code using this extension as the sender, JSON decode fails...
I've analysed the difference between the messages sent by HHVM and PHP and the only difference I've seen is that PHP does not null encode the messages whereas HHVM does, which stops PHP from being able to decode the messages.
Using PHP you can remove the trailing null character and successfully decode HHVM messages but this is a bug in the extension.
Thanks

Move from zmq to ext_zmq

An update to HHVM means that this no longer compiles as is.
zmq.php needs to be renamed ext_zmq.php and the change updated in config.cmake

Missing the obvious

zmq.so fails to load when restarting hhvm 3.6 on CentOS 7.

I want to ensure I'm not missing some implied background knowledge here, so bare with me.
Steps followed on a machine with hhvm compiled and 0mq 4.0.4 installed:
Unpacked, cd into hhvm-zmq-master dir, run build.sh, move the zmq.so into place, restart hhvm.

php -i shows error with module and not loaded.

Is there a step in the process I'm missing here that would cause this failure? Inspecting the size of the resulting binary shows it's about โ…“ the size of the regular zmq.so build. Please enlighten me.

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.