ID: 36030
Updated by: [EMAIL PROTECTED]
-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