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

Bug #21031 Warning on connection error(stream_socket_client)
Submitted: 2016-02-18 01:37 UTC
From: kna Assigned: ashnazg
Status: Closed Package: Net_Socket (version 1.0.14)
PHP Version: 5.6.16 OS: Linux
Roadmaps: (Not assigned)    

 [2016-02-18 01:37 UTC] kna
Description: ------------ stream_socket_client will produce a warning if the connection could not established. similar bug: Test script: --------------- <?php require_once('Net/Socket.php'); $socket = new Net_Socket(); if(PEAR::isError($socket->connect('', 0, null, null, ['http'=>['method'=>'GET']]))){ echo 'Error' . PHP_EOL; } echo 'Done' . PHP_EOL; Expected result: ---------------- Error Done Actual result: -------------- Warning: stream_socket_client(): unable to connect to (Connection refused) in /usr/local/php56/lib/php/Net/Socket.php on line 159 Error Done


 [2017-03-08 19:25 UTC] ashnazg (Chuck Burgess)
-Status: Open +Status: Closed -Assigned To: +Assigned To: ashnazg
Fix included in upcoming v1.1.0.