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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
20 + 28 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 08:01:29 2024 UTC