php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13620 bzip2 extension seems to be broken
Submitted: 2001-10-09 19:22 UTC Modified: 2002-02-05 06:48 UTC
From: lolo at phpheaven dot net Assigned:
Status: Closed Package: Bzip2 Related
PHP Version: 4.1.0 OS: Win98 SE
Private report: No CVE-ID: None
 [2001-10-09 19:22 UTC] lolo at phpheaven dot net
Hi All!

Here is a little script to reproduce the bug:

<?php
$var = bzcompress('abcdef123');
echo $var . '<br />' . "\n";
echo bzdecompress($var);
?>

It returns:
-8
-5


My config:
- Apache 1.3.20 on Win98-SE;
- php-4.0.7-rc3 or php-4.0.8-dev (latest build from php4win.de) loaded as an Apache module;
- php.ini is the recommended one except pathes and two extensions loaded: php_bz2.dll and php_zlib.dll.

Kind regards,
Lo?c

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-21 02:12 UTC] sniper@php.net
I can not reproduce this with PHP 4.1.0RC1 on Linux.
Could this be windows specific problem?

--Jani

 [2001-11-11 06:42 UTC] sander@php.net
4.0.6 works fine for me on Windows.
4.0.8 (the build from php4win) prints out:
-8
-5
A self-built 4.2.0-dev (200111080300) gives these errors:
bzcompress failed in script.php on line 2
bzdecompress failed in script.php on line 4

Reopening.
 [2001-11-27 15:17 UTC] lolo at phpheaven dot net
Hi all!

I've justed the php 4.0.1 build from Daniel at the bug is still here.
In case you ask for a confirmation ;)

Lo?c
 [2001-12-15 07:53 UTC] lolo at phpheaven dot net
Just a version update.
Lo?c
 [2001-12-15 08:15 UTC] lolo at phpheaven dot net
Hi Sander!

Oups, of course: 4.1.0 and not 4.0.1....

Sorry,
Lo?c
 [2002-01-27 00:48 UTC] sterling@php.net
Thanks for the report, should be fixed in CVS.  Developer who introduced these bugs no longer has development karma :)
 [2002-02-05 06:48 UTC] lolo at phpheaven dot net
Hi List!

Thanks Sterling for your fix. I'll give it a try as soon as a php build is available for winwin.

Lo?c
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 16 09:01:29 2024 UTC