--TEST-- Test pollset items --SKIPIF-- --FILE-- add(create_client(), ZMQ::POLL_IN); $poll->add($stream, ZMQ::POLL_IN); $poll->add(create_client(), ZMQ::POLL_IN); foreach ($poll->items() as $item) { unset($item); } var_dump($poll->items()); var_dump($poll->clear()->items()); echo "OK"; --EXPECTF-- array(3) { ["o:%s"]=> object(ZMQSocket)#%d (%d) { } ["r:%d"]=> resource(%d) of type (stream) ["o:%s"]=> object(ZMQSocket)#%d (%d) { } } array(0) { } OK