mkoppanen/php-zmq — pull request #119 by sdrsdr (2014-02-28 16:15:12+00:00)
Title: A hakish implementation of  ZMQMGContext with single module global zmq_ctx 

This allows mixing php threads with zeromq over the cheapest transport inproc:// allowing code like:
````
$zmq=new ZMQMGContext (1,true);
$mainsok=$zmq->getSocket(ZMQ::SOCKET_REP);
$mainsok->bind('inproc://talktomain');

class TestThread extends Thread
{
public $param;
public function run(){

$zmq=new ZMQMGContext (1,true);

$tomain=$zmq->getSocket(ZMQ::SOCKET_REQ);
$tomain->connect('inproc://talktomain');
$tomain->send(.......);
.......
$rep=$tomain->recv();
}
}
````