📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-29 20:26:35
📂
/
/
opt
/
alt
/
tests
/
alt-php81-pecl-zmq_1.1.3-1.84f0720.el8
/
tests
✏️
Editing: 020-exceptionincallback.phpt
--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