php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31947 fopen('php://input','r') is not opening file ,inappropraite ioctl device in
Submitted: 2005-02-12 15:09 UTC Modified: 2005-03-20 17:59 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: rjc80 at rediffmail dot com Assigned:
Status: No Feedback Package: Filesystem function related
PHP Version: 4.3.9 OS: linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-02-12 15:09 UTC] rjc80 at rediffmail dot com
Description:
------------
i'm openning a file through fopen('php://input','r');
which is coming from hytt or vc++ application on linux operataing system. its giving a error inappropriate ioctl device in .


Reproduce code:
---------------
$fp = fopen("php://input","r");
$filesz = $HTTP_GET_VARS["filesize"];;
$contents = fread($fp,$filesz);
in $contents i'm not getting any value. when i given stdin then $fp is working but $contents is again null. 

Expected result:
----------------
its should open a file n store data into $conte.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-12 15:18 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.


 [2005-03-20 17:59 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Nov 13 22:01:29 2019 UTC