#36030 [Opn->Asn]: stream_set_timeout() does not work for php://stdin
| From: | sniper@php.net | Date: | Mon, 16 Jan 2006 09:58:22 +0000 |
| Subject: | #36030 [Opn->Asn]: stream_set_timeout() does not work for php://stdin | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-91992@lists.php.net to get a copy of this message | ||
ID: 36030
Updated by: sniper@php.net
-Summary: stream_set_timeout doesn't work for php://stdin
Reported By: silencer at inbox dot ru
-Status: Open
+Status: Assigned
Bug Type: Streams related
Operating System: Linux
PHP Version: 5.1.2
-Assigned To:
+Assigned To: wez
Previous Comments:
------------------------------------------------------------------------
[2006-01-16 10:56:22] silencer at inbox dot ru
Description:
------------
stream_set_timeout can't be used for php://stdin (PHP executed as CGI,
not Apache module).
Bug #22837 describe same problem for PHP4 and promises "better support"
in PHP5, but still don't working.
Reproduce code:
---------------
<?php
$fp=fopen('php://stdin','r');
stream_set_timeout($fp,1) or die ('Failed');
echo 'Success';
?>
Expected result:
----------------
output "Success"
Actual result:
--------------
output "Failed"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36030&edit=1