// SYSTEM PANEL //
[ROOT]
/
opt
/
alt
/
tests
/
alt-php83-pecl-zmq_1.1.3-1.84f0720.el8
/
tests
[ PARENT ]
EDIT :: 032-contextopt.phpt
--TEST-- Test context options --SKIPIF-- <?php require_once(dirname(__FILE__) . '/skipif.inc'); if(!defined('ZMQ::CTXOPT_MAX_SOCKETS')) die('skip'); ?> --FILE-- <?php include dirname(__FILE__) . '/zeromq_test_helper.inc'; $context = new ZMQContext(); var_dump($context->getOpt(ZMQ::CTXOPT_MAX_SOCKETS) === ZMQ::CTXOPT_MAX_SOCKETS_DEFAULT); var_dump($context->setOpt(ZMQ::CTXOPT_MAX_SOCKETS, 512)); var_dump($context->getOpt(ZMQ::CTXOPT_MAX_SOCKETS)); echo "OK"; --EXPECT-- bool(true) NULL int(512) OK
SAVE
CANCEL