php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1558 fgetc dies.
Submitted: 1999-06-17 08:34 UTC Modified: 1999-06-18 11:50 UTC
From: azi at lfx dot org Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.9 OS: FreeBSD bsd.bolted.net 3.2-RELEA
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: azi at lfx dot org
New email:
PHP Version: OS:

 

 [1999-06-17 08:34 UTC] azi at lfx dot org
The code fragment below hangs until the script timeout on fgetc().  It's trying to make a POP3 connection, which should give an immediate "+OK dmt POP3 Server (Version 1.005l) ready at <Thu Jun 17 06:26:25 1999>        " line upon connecting.  This script (and actually a much, much more complicated version) run perfectly under Linux, but neither works in FreeBSD.  Exact same setup.  Apache 1.3.6, PHP 3.0.9. --enable-track-vars --with-apache=../apache_1.3.6 --with-mysql --without-pcre-regex

You can try executing this code at http://bsd.bolted.net/toast.php3.  php3.ini can be downloaded from http://bsd.bolted.net/php3.ini.  It'd kinda really really REAAALLY be helpful to get this fixed quick, we're bouncing the connections around between a linux and BSD box as a quickfix, but the traffic's growing exponentially thanks to the SQL database accesses..

I've also verified it's getting past the fsockopen.. It's that damn fgetc it's locking on.  fgets does the same thing.

<?
$fd = fsockopen ("lfx.org", 110);
if (!$fd) die ("Can't open socket!");

$char = fgetc ($fd);
echo "Got '$char' (expecting a +)";
?>  

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-18 11:50 UTC] sas at cvs dot php dot net
fixed in CVS
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 21:00:02 2026 UTC