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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 03:01:32 2024 UTC