Date: 07/12/01
- Next message: aidan <email protected>: "[PHP-DEV] Bug #12092: pathinfo fails to return when passed a file with no extension"
- Previous message: derick <email protected>: "[PHP-DEV] Bug #12090 Updated: refresh with Netscape"
- Next in thread: thies <email protected>: "[PHP-DEV] Bug #12091 Updated: zlib uncompress buffer error/ inflate failed"
- Reply: thies <email protected>: "[PHP-DEV] Bug #12091 Updated: zlib uncompress buffer error/ inflate failed"
- Reply: alberty <email protected>: "[PHP-DEV] Bug #12091 Updated: zlib uncompress buffer error/ inflate failed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: alberty <email protected>
Operating system: i686-pc-linux-gnu
PHP version: 4.0CVS-2001-07-12
PHP Bug Type: Zlib Related
Bug description: zlib uncompress buffer error/ inflate failed
Hi,
the follow code produces a deflated string
which php can not inflate.
php results:
"Warning: gzinflate: buffer error in /web/htdocs/thisfile.php"
---- <tt> <?php error_reporting(63); mt_srand ((double) microtime() * 1000000);for ($original="",$i=0;$i<5000;$i++){ //$original.=chr(mt_rand()); // $original.="lala "; // problem }
$packed=gzdeflate($original); // gzcompress $unpacked=gzinflate($packed); // gzuncompress
echo "Length original:".strlen($original)."<br>"; echo "Length packed:".strlen($packed)."<br>"; echo "Length unpacked:".strlen($unpacked)."<br>";
if (strcmp($original,$unpacked)==0) echo "Strings are equal"; else echo "<b>Strings <u>not</u> equal</b>"; ?> </tt> ----
Regards,
-- Steve -- Edit bug report at: http://bugs.php.net/?id=12091&edit=1
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: aidan <email protected>: "[PHP-DEV] Bug #12092: pathinfo fails to return when passed a file with no extension"
- Previous message: derick <email protected>: "[PHP-DEV] Bug #12090 Updated: refresh with Netscape"
- Next in thread: thies <email protected>: "[PHP-DEV] Bug #12091 Updated: zlib uncompress buffer error/ inflate failed"
- Reply: thies <email protected>: "[PHP-DEV] Bug #12091 Updated: zlib uncompress buffer error/ inflate failed"
- Reply: alberty <email protected>: "[PHP-DEV] Bug #12091 Updated: zlib uncompress buffer error/ inflate failed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

