php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3253 Can not open any sockets
Submitted: 2000-01-19 13:09 UTC Modified: 2002-10-01 15:12 UTC
From: argus at sover dot net Assigned:
Status: Wont fix Package: Other
PHP Version: 3.0.14 OS: BSDI 4.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: argus at sover dot net
New email:
PHP Version: OS:

 

 [2000-01-19 13:09 UTC] argus at sover dot net
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-02-06 06:28 UTC] sas at cvs dot php dot net
Hint: Use truss to find out why it fails. 
 [2002-10-01 15:12 UTC] hholzgra@php.net
We are sorry, but can not support PHP 3 related problems anymore.
Momentum is gathering for PHP 5, and we think supporting PHP 3 will
lead to a waste of resources which we want to put into getting PHP 5
ready. Ofcourse PHP 4 will will continue to be supported for the
forseeable future.


 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 19:01:30 2019 UTC