|  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
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: rjc80 at rediffmail dot com
New email:
PHP Version: OS:


 [2005-02-12 15:09 UTC] rjc80 at rediffmail dot com
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-12 15:18 UTC]
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]
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-2021 The PHP Group
All rights reserved.
Last updated: Fri May 07 19:01:24 2021 UTC