From: [EMAIL PROTECTED]
Operating system: Linux (Debian)
PHP version: 5.2CVS-2008-06-18 (CVS)
PHP Bug Type: Streams related
Bug description: Opening php:// wrapper in append mode results in a warning
Description:
------------
When attempting to fopen any php:// wrapper in append mode (which
should be equivalent to writing), PHP gives the following warning
before returning the resource:
fopen(): cannot seek on a pipe
The resource returned behaves properly.
Reproduce code:
---------------
<?php
var_dump(fopen("php://stdout", "a"));
var_dump(fopen("php://stdin", "a"));
var_dump(fopen("php://stderr", "a"));
?>
Expected result:
----------------
Warning: fopen(): cannot seek on a pipe in <...> on line 2
resource(5) of type (stream)
Warning: fopen(): cannot seek on a pipe in <...> on line 3
resource(6) of type (stream)
Warning: fopen(): cannot seek on a pipe in <...> on line 4
resource(7) of type (stream)
Actual result:
--------------
resource(5) of type (stream)
resource(6) of type (stream)
resource(7) of type (stream)
--
Edit bug report at http://bugs.php.net/?id=45303&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=45303&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=45303&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=45303&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45303&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=45303&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45303&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45303&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45303&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45303&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45303&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=45303&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=45303&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45303&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45303&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45303&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45303&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45303&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45303&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45303&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45303&r=mysqlcfg