📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-04 06:56:36
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php81-pecl-zmq_1.1.3-1.84f0720.el8
/
tests
📍 /opt/alt/tests/alt-php81-pecl-zmq_1.1.3-1.84f0720.el8/tests
🔄 Refresh
✏️
Editing: 020-exceptionincallback.phpt
Read Only
--TEST-- Test throwing exception from callback --SKIPIF-- <?php require_once(dirname(__FILE__) . '/skipif.inc'); ?> --FILE-- <?php function this_throws($a, $b) { throw new Exception("Hello there"); } try { $socket = new ZMQSocket(new ZMQContext(), ZMQ::SOCKET_REQ, 'persistent_socket', 'this_throws'); echo "Fail\n"; } catch (Exception $e) { echo $e->getMessage() . "\n"; } --EXPECTF-- Hello there
💾 Save Changes
❌ Cancel