ID: 17300
Updated by: x86zman@bigfoot.com
-Summary: bzcompress outs negative numbers (err codes ?)
Reported By: x86zman@bigfoot.com
-Status: Closed
+Status: Open
Bug Type: Bzip2 Related
Operating System: Win32 (W2K.Srvr w/SP2&SRP1)
-PHP Version: 4.2.1
+PHP Version: 4.2.2-dev
New Comment:
is was using php4-win32-STABLE-200206110000.zip (and the "-latest" too
!) snap for testing , and guess what -> this bug is still alive ! (how
unexpected ... ;)
and you may ref. this a docu. bug, but even so i've tested against the
newest docs. in the site and in the d/lable man.(s) - nothing has
changed !
Previous Comments:
------------------------------------------------------------------------
[2002-06-04 14:02:17] mfischer@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a
documentation
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.
Confirmed, 4.2.1 is broken. This bug is fixed in CVS, however.
------------------------------------------------------------------------
[2002-05-26 03:58:48] derick@php.net
reopen
------------------------------------------------------------------------
[2002-05-25 21:10:35] x86zman@bigfoot.com
Here's the "big" Code :
[Code]
if (@function_exists('bzcompress'))
{
$file_ext .= '.bz2'; $file_mime_type = 'application/x-bzip';
$file_contents = bzcompress($file_contents,9);
}
else { $file_mime_type = 'application/x-csv'; }
[/Code]
------------------------------------------------------------------------
[2002-05-25 06:45:38] derick@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2002-05-17 20:12:45] x86zman@bigfoot.com
bzcompress outs negative numbers (err codes ?) !
no matter whatever data length or type, blocksize or workfactor you may
feed it with , the result is the same "-8" ...
i've searched the bug db before reporting and saw that you've marked
this issue "closed" , and even moreover - that this extension seems
problematic since 4.0.4 (almost since it've ever existed ...) !
could you plz fix (& stabilize ?) this extension at once ?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17300&edit=1