php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5593 Problem receiving data from fopen and fsockopen
Submitted: 2000-07-14 13:49 UTC Modified: 2000-08-06 23:05 UTC
From: darrell at brogdon dot net Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.1pl2 OS: Red Hat 6.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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: darrell at brogdon dot net
New email:
PHP Version: OS:

 

 [2000-07-14 13:49 UTC] darrell at brogdon dot net
I have a simple script (source can be seen at http://www.phpbuilder.com/columns/darrell20000319.php3?page=4) that  works when I test it with version 4.0RC1 but not with 4.0.1pl2.

When I execute this script it just sits there.  I'm not prompted with the text from the 'print()' function or anything.

I've noticed similar problems with fsockopen().

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-14 14:01 UTC] darrell at brogdon dot net
It seems to be related to the fopen 'SIZE' parameter.  If I set it to something like 128 or 8 I get the following after entering text:

<b>Warning</b>:  fopen("php://stdin","r") - Bad file descriptor in <b>./shell_test.php</b> on line <b>12</b><br>
<br>
<b>Warning</b>:  Supplied argument is not a valid File-Handle resource in <b>./shell_test.php</b> on line <b>13</b><br>
<br>
<b>Warning</b>:  Supplied argument is not a valid File-Handle resource in <b>./shell_test.php</b> on line <b>14</b><br>
 [2000-08-06 18:47 UTC] stas@php.net
reclassify
 [2000-08-06 23:05 UTC] sterling@php.net
Closed per user request.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 13:00:01 2026 UTC