[php-src] Issue #9780: gzuncompress() unable to handle data from gzcompress($s,1,ZLIB_ENCODING_RAW);

From: Date: Wed, 19 Oct 2022 10:04:53 +0000
Subject: [php-src] Issue #9780: gzuncompress() unable to handle data from gzcompress($s,1,ZLIB_ENCODING_RAW);
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-242628@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/9780 Author: divinity76 ### Description The following code: ```php <?php $data="test"; var_dump(gzuncompress(gzcompress($data,1, ZLIB_ENCODING_DEFLATE))); var_dump(gzuncompress(gzcompress($data,1,ZLIB_ENCODING_RAW))); ``` Resulted in this output: ``` string(4) "test" Warning: gzuncompress(): data error in /in/Ms5o8 on line 4 bool(false) ``` But I expected this output instead: ``` string(4) "test" string(4) "test" ``` ### PHP Version 8.1.11 ### Operating System _No response_

« previous php.bugs (#242628) next »