Edit report at https://bugs.php.net/bug.php?id=48725&edit=1
ID: 48725
Comment by: lello-3 at hotmail dot com
Reported by: slusarz at curecanti dot org
Summary: Support for flushing in zlib stream
Status: Open
Type: Bug
Package: Streams related
Operating System: Linux
PHP Version: 5.2.10
Block user comment: N
Private report: N
New Comment:
Please fix this
Previous Comments:
------------------------------------------------------------------------
[2011-12-13 22:36:17] dtrebbien at gmail dot com
See also: http://stackoverflow.com/questions/7508762/using-zlib-filter-with-a-socket-pair/
------------------------------------------------------------------------
[2009-10-23 12:25:10] jani@php.net
It's related, not same. :)
------------------------------------------------------------------------
[2009-10-22 21:40:37] slusarz at curecanti dot org
I don't think this is related to bug #49816. Turning off zlib output compression (by adding
"ini_set('zlib.output_compression', 'Off');" to the top of the test
script)doesn't alter the results from the test script previously reported.
------------------------------------------------------------------------
[2009-10-19 15:15:51] jani@php.net
See also bug #49816
------------------------------------------------------------------------
[2009-07-14 03:10:46] slusarz at curecanti dot org
<?php
// 16,000 bytes
$text = str_repeat('0123456789abcdef', 1000);
$temp = fopen('php://temp', 'r+');
stream_filter_append($temp, 'zlib.deflate', STREAM_FILTER_WRITE);
fwrite($temp, $text);
rewind($temp);
fpassthru($temp);
print "Location: " . ftell($temp) . "\n";
fclose($temp);
// Expected: compressed data; Location = some non-zero integer
// Actual: No data output; Location = 0
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=48725--
Edit this bug report at https://bugs.php.net/bug.php?id=48725&edit=1