#36030 [Fbk->Opn]: stream_set_timeout() does not work for php://stdin
| From: | silencer at inbox dot ru | Date: | Tue, 07 Jul 2009 15:48:52 +0000 |
| Subject: | #36030 [Fbk->Opn]: stream_set_timeout() does not work for php://stdin | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-139406@lists.php.net to get a copy of this message | ||
ID: 36030
User updated by: silencer at inbox dot ru
Reported By: silencer at inbox dot ru
-Status: Feedback
+Status: Open
Bug Type: Streams related
Operating System: Gentoo Linux
PHP Version: 5.2.10
New Comment:
Not fixed in that snapshot.
Previous Comments:
------------------------------------------------------------------------
[2009-07-07 15:32:55] jani@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2009-06-30 16:20:59] silencer at inbox dot ru
Still don't working with
PHP 5.2.10-pl0-gentoo (cli)
------------------------------------------------------------------------
[2009-05-09 01:31:58] squid3 at treenet dot co dot nz
Encountered this bug when upgrading php4 to php5 about a year ago.
It no longer seems to be an issue as of:
Debian Lenny
PHP 5.2.9-2 with Suhosin-Patch 0.9.7 (cli) (built: Apr 25 2009
08:53:53)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
------------------------------------------------------------------------
[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