ID:               48596
 Comment by:       php_nospam at ramihyn dot sytes dot net
 Reported By:      php_nospam at ramihyn dot sytes dot net
 Status:           Feedback
 Bug Type:         Streams related
 Operating System: Windows XP SP3
 PHP Version:      5.3.0RC3
 New Comment:

The example code for stream_filter_remove() doesn't run on my Linux VM
either, which i compiled 5.3.0RC4 on. Same result as on my Windows box:
it correctly writes to the "test.txt" file what it should, but
fpassthru() doesnt output anything.

Doesn't seem to be windows specific.


Previous Comments:
------------------------------------------------------------------------

[2009-06-23 11:25:57] [email protected]

Is it windows specific?

------------------------------------------------------------------------

[2009-06-21 00:26:42] php_nospam at ramihyn dot sytes dot net

Still doesn't work for me with RC4.

------------------------------------------------------------------------

[2009-06-20 21:57:13] majkl578 at gmail dot com

Sorry, not same, I have 5.3.0RC4

------------------------------------------------------------------------

[2009-06-20 21:56:24] majkl578 at gmail dot com

Same problem as in first post here (code tested).
OS: Debian Lenny (unstable)
Same PHP version.

------------------------------------------------------------------------

[2009-06-18 17:52:59] php_nospam at ramihyn dot sytes dot net

If using the bzip2.compress or zlib.deflate filters, ftell() returns
the same value as before using the filter to write to the stream:

<?php
$s = "The quick brown fox jumps over the lazy dog.";
$fp = fopen("test.bin","w");
fwrite($fp,$s);
var_dump(ftell($fp)); // int(44)
$filter =
stream_filter_append($fp,"zlib.deflate",STREAM_FILTER_WRITE,9);
fwrite($fp,$s);
stream_filter_remove($filter);
var_dump(ftell($fp)); // int(44)
fclose($fp);
?>

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/48596

-- 
Edit this bug report at http://bugs.php.net/?id=48596&edit=1

Reply via email to