Bug #77080 [Opn]: Defalate not working

From: Date: Mon, 29 Oct 2018 22:39:53 +0000
Subject: Bug #77080 [Opn]: Defalate not working
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217742@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77080&edit=1 ID: 77080 Updated by: cmb@php.net Reported by: huisman at comandi dot nl Summary: Defalate not working Status: Open Type: Bug Package: Zlib related Operating System: Ubuntu 18.04.1 LTS PHP Version: 7.2Git-2018-10-29 (Git) Block user comment: N Private report: N New Comment: Works here: <https://3v4l.org/RRJ8b>. Previous Comments: ------------------------------------------------------------------------ [2018-10-29 14:27:42] huisman at comandi dot nl Description: ------------ stream_filter_append in combination with zlib.deflate no longer works as expected in PHP 7.2 and produces an empty string instead of the expected compressed string. (see test script). Test script: --------------- <?php $stream = fopen('php://temp', 'w+'); fwrite($stream, 'something something'); stream_filter_append($stream, 'zlib.deflate', STREAM_FILTER_READ, ['level' => 6]); rewind($stream); $contents = fread($stream, 1024); Expected result: ---------------- A compressed string Actual result: -------------- An empty string ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77080&edit=1

« previous php.bugs (#217742) next »