php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23852 bcompiler: Assumes that --with-bz2 has been specified
Submitted: 2003-05-28 08:11 UTC Modified: 2003-06-06 04:02 UTC
From: per at nobolt dot com Assigned: alan_k (profile)
Status: Closed Package: PEAR related
PHP Version: 4.3.1 OS: Debian GNU/Linux
Private report: No CVE-ID: None
 [2003-05-28 08:11 UTC] per at nobolt dot com
bcompiler makes the (wrong) assumption that if PHP_HAS_STREAMS is set, bzip support is enabled.  This is not always the case, and what is even worse, if PHP has been compiled without bzip2 support, bcompiler gives a segmentation fault when bcompiled_load() is being run.

Solution:
Check if bzip2 support is available (somehow, if it can be done in an easy way).  If not, fallback to standard fopen() instead of bzopen().

Severity: grave, since it makes the package unusable if --with-bzip2 has not been specified, even though the package would work properly without bzip2 support.

Estimated time to fix: 5 minutes-1 hour, dependent on engineer skills.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-28 08:54 UTC] alan_k@php.net
is this the cvs version or the release version - I though I had that one nailed :)

Regards
Alan

P.S. I like the estimated time.. :) - probably take me a few days :)
 [2003-05-30 03:15 UTC] per at nobolt dot com
This is the release version (0.4) -- I haven't tested with the CVS version on this, it is running on a production system.  If you have fixed lots of issues such as this, perhaps it would be time to make a new release (0.5)?

(P.S. Yes, it was "dependent on engineer skills" you know.  ;-)
 [2003-05-30 03:40 UTC] alan_k@php.net
ok, will try and get time to do a new release.
 [2003-06-06 04:02 UTC] alan_k@php.net
hopefully all those are caught in the new release.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 11:01:31 2024 UTC