Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.1.14

Bug #10118 quit command doesn't disconnect the socket
Submitted: 2007-02-19 02:25 UTC
From: ian at mywits-end dot co dot uk Assigned: amir
Status: Closed Package: Net_SmartIRC (version 1.0.0)
PHP Version: Irrelevant OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2007-02-19 02:25 UTC] ian at mywits-end dot co dot uk (Ian Gibbons)
Description: ------------ There is a bug in Net/SmartIRC/irccommands.php that results in the 'quit' command not disconnecting the socket when it is used. Infact after sending the quit message, it doesn't do anything else, leaving your script hanging until you otherwise terminate it. I have created a patch which fixes this and may be applied with "patch -p0 < irccommands.php.patch". The raised priority ensures the quit message is sent before the socket is destroyed, at which point your script should terminate normally. The patch assumes your php/pear dir is /usr/share/php, which should be correct for most people. You may need to adjust accordingly if this is not so by editing the patch. Kind Regards, Ian Test script: --------------- Download patch from: http://www.mywits-end.co.uk/irccommands.php.patch Expected result: ---------------- Before patch applied, 'quit' sends the quit message but leaves a script hanging. After patch applied, 'quit' works as documented. Actual result: -------------- As expected :)

Comments

 [2007-08-10 15:11 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!