관리-도구
편집 파일: 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