Bug #15418 Updated: bzdecompress returning negative numbers instead of strings
| From: | sander@php.net | Date: | Thu, 07 Feb 2002 11:37:00 +0000 |
| Subject: | Bug #15418 Updated: bzdecompress returning negative numbers instead of strings | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-79510@lists.php.net to get a copy of this message | ||
ID: 15418
Updated by: sander@php.net
Reported By: epicanis+php@dogphilosophy.net
-Status: Open
+Status: Closed
Bug Type: Bzip2 Related
Operating System: Linux (2.4.17 ix86)
PHP Version: 4.1.1
New Comment:
This is probably fixed in CVS. Reopen if it's not.
Previous Comments:
------------------------------------------------------------------------
[2002-02-06 21:56:17] epicanis+php@dogphilosophy.net
This APPEARS that it may be a re-surgence of bug#12233,
which was marked closed several months ago...
I am getting bzcompressed strings into a script, which is
then supposed to bzdecompress them and save the
bzdecompressed strings to a file. What's coming out is
the same sort of thing described in bug#12233 - instead of
the strings I'm getting "-7-5-5-5-5"(etc.)
I also tried grabbing the current CVS. I couldn't get
./buildconf to work right, but I did try copying the
current files out of CVS's ext/bz2 directory over the top
of 4.1.1's released files and recompiling 4.1.1 that way,
but still no fix...
Example (in the following example, '$fhandle' is an
fopen'ed URL which is a script that opens a file and sends
it as bzcompressed strings. THIS script has been tested,
and works fine - I can use wget to fetch the same data and
successfully bunzip2 it from the console. $savehandle is
the local file that's been fopen'ed to save the
bzdecompressed data to [and which is getting the
"-7-5-5-5-5" in it...])
while(!feof($fhandle))
{
$data=fread($fhandle,8192);
$outdata=bzdecompress($data);
fwrite($savehandle,$outdata);
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15418&edit=1