관리-도구
편집 파일: 014-setsockoptparam.phpt
--TEST-- Test setSockOpt param type --SKIPIF-- <?php require_once(dirname(__FILE__) . '/skipif.inc'); ?> --FILE-- <?php $poll = new ZMQPoll(); $ctx = new ZMQContext(); $sock = new ZMQSocket($ctx, ZMQ::SOCKET_REP); $test = "1"; $sock->setSockOpt(ZMQ::SOCKOPT_HWM, $test); echo gettype($test) . "\n"; echo "done\n"; --EXPECT-- string done