PHP 4.0 Bug #7576 Updated: socket() always fails with an "Unknown error"

From: Date: Wed, 01 Nov 2000 23:51:09 +0000
Subject: PHP 4.0 Bug #7576 Updated: socket() always fails with an "Unknown error"
Groups: php.dev 
Request: Send a blank email to php-dev+get-36723@lists.php.net to get a copy of this message
ID: 7576 Updated by: chrisv Reported By: mitch@venux.net Status: Analyzed Bug Type: Documentation problem Assigned To: Comments: Read your local man page on socket(2). Most of the functions in the sockets extension return >= 0 on success and < 0 on error. Reclassified as a documentation problem. Docs writers: feel free to bug me on the semantics of the functions in the module and such :) Previous Comments: --------------------------------------------------------------------------- [2000-11-01 18:07:20] mitch@venux.net Something like if ( ($iSockFD = socket (AF_INET, SOCK_STREAM,0) ) != 0) { print "Call to socket() failed: reason: " . strerror ($iSockFD) . "n"; exit(); } That results in an "Unknown error 4294967293" message from strerror() in Linux kernel 2.2.16.. A "Unknown error: -3" in FreeBSD 4.0 -- no matter what user I am, this error occurs on both operating systems.. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7576

« previous php.dev (#36723) next »