|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #209 fgetc and fgets fail after reading about 500 bytes from fsockopen
Submitted: 1998-03-28 12:02 UTC Modified: 1998-03-31 11:38 UTC
From: schmitt at towson dot edu Assigned: rasmus (profile)
Status: Closed Package: Other
PHP Version: 3.0 Release Cand OS: IRIX 6.4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: schmitt at towson dot edu
New email:
PHP Version: OS:


 [1998-03-28 12:02 UTC] schmitt at towson dot edu
The fp should not be flushed when reading from a file
descriptor opened with fsockopen.

The problem was solved when I commented out the FFLUSH statements
in file.c lines 430 and 477

% nl file.c | grep FFLUSH

   430          /*      FFLUSH(fp,issock); */
   477                  /* FFLUSH(fp,issock);*/


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-03-31 11:38 UTC] rasmus
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 02 16:01:27 2023 UTC