##zmq-extension-for-hhvm
A simple zmq extension implement for hhvm, a hard try!!!
###Environment
The extension is developed at ubuntu12.04 and gcc version 4.8.1
###Installing
-
First, you need install hhvm : HHVM
-
Second, you need install libzmq : LIBZMQ
-
Then, sh build.sh or chmod +x build.sh and ./build.sh
-
If everything is ok, you can see zmq.so in the folder, now add below to your hhvm config.hdf:
DynamicExtensions {
zmq = /path/to/zmq.so
}
###Testing
-
Simple unit test: hhvm /usr/local/bin/phpunit unit_test.php (you need install PHPUnit before unit testing)
-
Simple Pub-Sub test: run the pub(hhvm pub.php) and run the sub(hhvm sub.php)
-
Simple Poll test: run the pub(hhvm pub.php) and run the poll (hhvm poll.php)
###Report Errors First, I am sorry about anything unexpected! If you get any trouble when installing and running the extension , please tell me ([email protected]);