Bug #3253: Can not open any sockets
| From: | argus at sover dot net | Date: | Wed, 19 Jan 2000 18:09:55 +0000 |
| Subject: | Bug #3253: Can not open any sockets | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-14758@lists.php.net to get a copy of this message | ||
From: argus@sover.net
Operating system: BSDI 4.1
PHP version: 3.0.14
PHP Bug Type: Other
Bug description: Can not open any sockets
If I run any program that wants to use a socket (imap or fsockopen) they fail.
I tried this program:
$fp = fsockopen("www.php.net", 80, &$errno, &$errstr, 30);
if(!$fp) {
echo "$errstr ($errno)<br>\n";
} else {
fputs($fp,"GET / HTTP/1.0\n\n");
while(!feof($fp)) {
echo fgets($fp,128);
}
fclose($fp);
}
and got the following output:
(0)
I have tried open a socket connection with fsock on an odd port, I have also tried opening an
imap_open with the same results.
I am not running php in safe mode, I am running it as an apache module and I do have it working on a
BSDi 4.0.1 with php-3.0.12
-John Barrett
argus@sover.net