#36030 [Asn]: stream_set_timeout() does not work for php://stdin
| From: | sniper@php.net | Date: | Mon, 16 Jan 2006 09:58:36 +0000 |
| Subject: | #36030 [Asn]: stream_set_timeout() does not work for php://stdin | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-91993@lists.php.net to get a copy of this message | ||
ID: 36030
Updated by: sniper@php.net
Reported By: silencer at inbox dot ru
Status: Assigned
Bug Type: Streams related
-Operating System: Linux
+Operating System: *
PHP Version: 5.1.2
Assigned To: wez
New Comment:
Assigned to the maintainer.
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