--TEST-- Test invalid args for callback --SKIPIF-- --FILE-- getSocket(ZMQ::SOCKET_REQ, 'my persistent 2', 'this_function_does_not_exist'); echo "Fail\n"; } catch (ZMQSocketException $e) { echo "OK\n"; } catch (TypeError $e) { echo "OK\n"; // on PHP8 } --EXPECT-- OK OK