--TEST-- Test send / recv with XPUB and XSUB sockets --SKIPIF-- --FILE-- bind(ZEROMQ_TEST_DSN); $client = new ZMQSocket($context, ZMQ::SOCKET_SUB); $client->setSockOpt(ZMQ::SOCKOPT_SUBSCRIBE, "Hel"); $client->connect(ZEROMQ_TEST_DSN); var_dump(substr($server->recvmsg(), 1)); $server->sendmsg("Goodbye world!"); $server->sendmsg("Hello world!"); $message = $client->recvmsg(); var_dump($message); --EXPECT-- string(3) "Hel" string(12) "Hello world!"