golden hour
/opt/alt/tests/alt-php71-pecl-zmq_1.1.3-1.84f0720.el9/tests
⬆️ Go Up
Upload
File/Folder
Size
Actions
001-send.phpt
451 B
Del
OK
002-test-binary.phpt
538 B
Del
OK
003-getpersistentid.phpt
278 B
Del
OK
004-getendpoints.phpt
724 B
Del
OK
005-forceconnectarg.phpt
631 B
Del
OK
006-sockopt.phpt
754 B
Del
OK
007-addremovepoll.phpt
1.56 KB
Del
OK
008-twowaystoconstruct.phpt
388 B
Del
OK
009-ispersistent.phpt
983 B
Del
OK
010-pollsetinvalidargs.phpt
419 B
Del
OK
011-exceptions.phpt
422 B
Del
OK
012-pollsetremoveinvalid.phpt
395 B
Del
OK
013-pollclearandreuse.phpt
673 B
Del
OK
014-setsockoptparam.phpt
343 B
Del
OK
015-callback.phpt
712 B
Del
OK
016-callbackinvalidargs.phpt
623 B
Del
OK
017-callbackonlyonnewsocket.phpt
786 B
Del
OK
018-callbackpersistent.phpt
521 B
Del
OK
020-exceptionincallback.phpt
407 B
Del
OK
021-callbackwarning.phpt
613 B
Del
OK
022-highwatermark.phpt
1013 B
Del
OK
023-failedcallback.phpt
1.34 KB
Del
OK
024-versionconstant.phpt
222 B
Del
OK
025-sendrecvmulti.phpt
666 B
Del
OK
026-sockettype.phpt
522 B
Del
OK
027-getset.phpt
589 B
Del
OK
028-xpub.phpt
874 B
Del
OK
029-xrepxreqdevice.phpt
971 B
Del
OK
030-xrepmanualqueue.phpt
1.33 KB
Del
OK
031-lastendpoint.phpt
506 B
Del
OK
032-contextopt.phpt
515 B
Del
OK
033-disconnect.phpt
716 B
Del
OK
034-unbind.phpt
678 B
Del
OK
035-capture.phpt
1.29 KB
Del
OK
036-device.phpt
2.25 KB
Del
OK
037-device-deprecated.phpt
665 B
Del
OK
038-cert-construct.phpt
488 B
Del
OK
039-cert-equals.phpt
475 B
Del
OK
040-cert-clone.phpt
268 B
Del
OK
041-cert-meta.phpt
727 B
Del
OK
042-cert-save.phpt
823 B
Del
OK
043-cert-load.phpt
664 B
Del
OK
044-auth-construct.phpt
266 B
Del
OK
045-auth-allow-deny.phpt
371 B
Del
OK
046-cert-apply.phpt
307 B
Del
OK
047-auth-configure.phpt
1.25 KB
Del
OK
048-pollsetitems.phpt
1.15 KB
Del
OK
049-events.phpt
1.12 KB
Del
OK
050-sharedcontext.phpt
699 B
Del
OK
051-socketcount.phpt
1.42 KB
Del
OK
052-pthreads.phpt
1.83 KB
Del
OK
053-z85.phpt
1.26 KB
Del
OK
054-curvekeypair.phpt
631 B
Del
OK
055-socks-proxy.phpt
948 B
Del
OK
bug_gh_156.phpt
647 B
Del
OK
bug_gh_165.phpt
421 B
Del
OK
bug_gh_43.phpt
684 B
Del
OK
bug_gh_49.phpt
1.22 KB
Del
OK
bug_gh_50.phpt
1.2 KB
Del
OK
bug_gh_59.phpt
520 B
Del
OK
bug_gh_59_2.phpt
982 B
Del
OK
libzmq2-sockopt.phpt
14.33 KB
Del
OK
libzmq3-sockopt.phpt
8.66 KB
Del
OK
libzmq4-sockopt.phpt
7.8 KB
Del
OK
rose.jpg
1.54 KB
Del
OK
skipif-czmq2.inc
172 B
Del
OK
skipif-libzmq2.inc
154 B
Del
OK
skipif-libzmq3.inc
154 B
Del
OK
skipif-libzmq4.inc
154 B
Del
OK
skipif.inc
82 B
Del
OK
zeromq_test_helper.inc
705 B
Del
OK
Edit: 030-xrepmanualqueue.phpt
--TEST-- Test send / recv with a manually created XREQ and XREP device --SKIPIF-- <?php require_once(dirname(__FILE__) . '/skipif.inc'); if(!defined('ZMQ::SOCKOPT_RCVLABEL')) die('skip Only for in libzmq 3.3.0'); ?> --FILE-- <?php $ctx = new ZMQContext(); $req = new ZMQSocket($ctx, ZMQ::SOCKET_REQ); $xrep = new ZMQSocket($ctx, ZMQ::SOCKET_XREP); $xreq = new ZMQSocket($ctx, ZMQ::SOCKET_XREQ); $rep = new ZMQSocket($ctx, ZMQ::SOCKET_REP); $xrep->bind('inproc://xrep'); $xreq->bind('inproc://xreq'); $req->connect('inproc://xrep'); $rep->connect('inproc://xreq'); $in = array('hi', 'there'); $req->sendMulti($in); do { $message = $xrep->recv(); $more = $xrep->getSockOpt(ZMQ::SOCKOPT_RCVMORE); if( $xrep->getSockOpt( ZMQ::SOCKOPT_RCVLABEL ) ) { $xreq->send( $message, ZMQ::MODE_SNDLABEL ); } else { $xreq->send( $message, $more ? ZMQ::MODE_SNDMORE : 0 ); } } while( $more ); $out = $rep->recvMulti(); assert($in == $out); $rep->sendMulti(array("oh", "hello!")); do { $message = $xreq->recv(); $more = $xreq->getSockOpt(ZMQ::SOCKOPT_RCVMORE); if( $xreq->getSockOpt( ZMQ::SOCKOPT_RCVLABEL ) ) { $xrep->send( $message, ZMQ::MODE_SNDLABEL ); } else { $xrep->send( $message, $more ? ZMQ::MODE_SNDMORE : 0 ); } } while( $more ); var_dump($req->recvMulti()); --EXPECT-- array(2) { [0]=> string(2) "oh" [1]=> string(6) "hello!" }
Save