📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-29 20:36:49
📂
/
/
opt
/
alt
/
tests
/
alt-php84-pecl-zmq_1.1.3-1.84f0720.el8
/
tests
✏️
Editing: 033-disconnect.phpt
--TEST-- Test disconnect --SKIPIF-- <?php require_once(dirname(__FILE__) . '/skipif.inc'); if (!in_array ('disconnect', get_class_methods ('zmqsocket'))) die ('skip disconnect not supported in libzmq version'); ?> --FILE-- <?php include dirname(__FILE__) . '/zeromq_test_helper.inc'; $s = create_server(); $c = create_client(); $endpoints = $c->getendpoints(); var_dump($endpoints); foreach ($endpoints['connect'] as $dsn) { $c->disconnect($dsn); } var_dump ($c->getendpoints()); echo "OK"; --EXPECT-- array(2) { ["connect"]=> array(1) { [0]=> string(17) "inproc://php-test" } ["bind"]=> array(0) { } } array(2) { ["connect"]=> array(0) { } ["bind"]=> array(0) { } } OK
💾 Save Changes
❌ Cancel