ID: 9503
Updated by: sniper
Old-Status: Open
Status: Closed
Bug Type: Bzip2 Related
Assigned To: 

Fixed in CVS.


Previous Comments:

[2001-02-28 16:58:45] [EMAIL PROTECTED]
I compiled PHP 4.0.4pl1 with --bz2, using bzip 1.0.1. Running bzcompress() on a string 
always returns a string of the same size. The data in the returned string appears to 
be correctlty compressed though, as it uncompresses correctly when passed back to 
bzdecompress(). It appears that the first part of the returned string contains the 
correctly compressed result, and that the returned string is then padded with nulls 
out to the size of the original string. The gzcompress() function does not behave this 

$str = "[...some really huge string...]";
  strlen($str) . " " .
  strlen(gzcompress($str,9)) . " " .

This generates the output: 14092 2348 14092


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to