ID: 22538
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Assigned
Bug Type: Filesystem function related
Operating System: RedHat Linux 8.0 (glibc-2.3.0)
PHP Version: 5CVS-2003-03-04 (dev)
-Assigned To:
+Assigned To: iliaa
Previous Comments:
------------------------------------------------------------------------
[2003-03-04 12:56:34] [EMAIL PROTECTED]
Correcting a typo.
wrong: $ php script3.php
right: $ cat Zend/zend.c | php script3.php
------------------------------------------------------------------------
[2003-03-04 12:49:03] [EMAIL PROTECTED]
$ cat Zend/zend.c | php script2.php
produces bogus output, whilst
$ php script1.php
and
$ php script3.php
work correctly.
script1.php:
<?php
$fin = fopen("Zend/zend.c", "r");
$fout = fopen("/tmp/output", "w");
stream_filter_append($fout, "string.rot13");
stream_copy_to_stream($fin, $fout);
fclose($fin);
fclose($fout);
?>
script2.php:
<?php
$fin = fopen("php://stdin", "r");
$fout = fopen("/tmp/output", "w");
stream_filter_append($fout, "string.rot13");
stream_copy_to_stream($fin, $fout);
fclose($fin);
fclose($fout);
?>
script3.php:
<?php
$fin = fopen("php://stdin", "r");
$fout = fopen("/tmp/output", "w");
stream_filter_append($fin, "string.rot13");
stream_copy_to_stream($fin, $fout);
fclose($fin);
fclose($fout);
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22538&edit=1