PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Networking » Net_Socket

Network Socket Interface

This package is unmaintained.

Download latest release 1.2.2 (there might be newer Composer installable version)

License: BSD-2-Clause

Description

Net_Socket is a class interface to TCP sockets. It provides blocking
and non-blocking operation, with different reading and writing modes
(byte-wise, block-wise, line-wise and special formats like network
byte-order ip addresses).

Documentation

Manual

Maintainers

Dependencies

Required

Releases

Bugs

IDStatusTypeVersionDateSummary
#86ClosedBug2003-10-11CS problems
#87ClosedBug2003-10-11readLine() method has problems with "\n" line endings
#980ClosedBug2004-03-09Block write works better on Windows XP
#1070DuplicateBug2004-03-25Warning on connection error
#1140ClosedBug2004-04-05Feature Request (with diff) - connect options
#1300ClosedBug2004-04-27Error in a call to fsockopen
#1427BogusBug2004-05-17Net_Socket::eof() hangs due to use of feof()
#1428ClosedReq2004-05-17Feature Request: Select in Net_Socket
#1667BogusBug2004-06-17read() doesn't return if less than the maximum size is available
#2554ClosedBug2004-10-18When connecting to some IIS servers a "fatal protocol error" happens
#2705BogusBug2004-11-06RFE: Return descriptive error message on failed host lookup
#2706Wont fixBug2004-11-06Fix readAll() hangs in blocking mode
#2961ClosedBug2004-12-13connect() in 1.0.3 doesn't work w/ filesystem sockets
#3100ClosedBug2005-01-04ssl:// is causing Net_Socket::connect() to fail
#3327ClosedReq2005-01-29Method for setting Socket's write buffer size
#3331BogusBug2005-01-30PHP warning instead of PEAR_Error if (p)fsockopen() fails
#3372ClosedBug2005-02-03net_socket needs to support stream transport specification to work w/ php 5
#4812ClosedReq2005-07-12Protocol string in gethostbyname
#5807ClosedBug2005-10-28(patch) select is broken when out-of-band data present
#5980BogusReq2005-11-16readLine hangs
#6789ClosedBug1.0.62006-02-15Net_Sock::eof() returns false when socket is already disconnected
#7190ClosedBug1.0.62006-03-24Stream options don't work in PHP5
#7266BogusBug1.0.62006-03-30Can Open https connection through HTTP_Request
#7692ClosedBug1.0.62006-05-22readLine exits silently on error
#8422BogusBug1.0.62006-08-11broken pipe causes Apache server to become unresponsive
#11039ClosedBug1.0.82007-05-15Error in code?
#11040DuplicateBug1.0.82007-05-15Bug in code ?
#11202ClosedBug1.0.82007-06-01Correct code
#13107Wont fixBug1.0.82008-02-12Net_Socket::write() returns false on error
#13249DuplicateBug1.0.82008-02-28write method returns false on error
#13547ClosedDoc1.0.82008-03-31Which license version?
#14181ClosedReq1.0.82008-06-18\r\n vs \n
#14284Wont fixBugCVS2008-07-03if host unresolved then raiseError
#14327DuplicateBug1.0.82008-07-11undefined variable
#14433ClosedReq1.0.92008-08-01gets(), optional size parameter
#14448ClosedReq1.0.92008-08-03Polluted error messages
#14449Wont fixReq1.0.92008-08-03Error Constants (OS dependent)
#14619ClosedBug1.0.92008-09-08write() hangs
#14803ClosedReqCVS2008-10-15Improve PHPCS results
#15981BogusBug2009-03-05No error returned on timeout
#17484ClosedBug1.0.92010-06-11PHP Fatal error: Maximum execution time of 30 seconds exceeded
#17526ClosedReqSVN2010-06-28License change
#17655Wont fixReqSVN2010-08-04SOCKS/SOCKS5 Proxy Support
#17741ClosedBugSVN2010-08-18package.xml doesn't validate against pear package 2.0 schema
#17765ClosedBugSVN2010-08-20Patch: Avoid deprecated socket_set_blocking
#18176AssignedBug1.0.102011-01-06socket behavior dependent on the order that sockets are disconnected
#18231ClosedBug1.0.102011-02-01IPv6 sockets cannot be used
#18262ClosedBug1.0.102011-02-10Incomplete buffer sent with fwrite after bugfix #14619
#18281ClosedBug1.0.102011-02-16Socket.php errors when sending large emails through Pear Mail
#18436ClosedReq1.0.102011-04-132nd argument of setTimeout() could be optional
#18437ClosedBug1.0.102011-04-13Possible timeout bug
#18438ClosedBug1.0.102011-04-13Wrong PHP version dependency and socket_* function aliases
#19557ClosedDocSVN2012-08-10Incomplete gets() method description
#19949ClosedBug1.0.112013-05-16Connection problem when no timeout is set in 1.0.11
#20113ClosedBug1.0.142013-11-04package.xml does not validate
#21031ClosedBug1.0.142016-02-17Warning on connection error(stream_socket_client)
#21178ClosedBugSVN2017-02-06$php_errormsg is deprecated in PHP 7.2
#23768OpenBug1.2.22018-09-13Git tag of v1.2.2 is incorrect
#26998OpenBug1.2.22020-11-11Endless loop in write() if connection broken