#23852 [Asn]: bcompiler: Assumes that --with-bz2 has been specified

From: Date: Wed, 28 May 2003 13:54:53 +0000
Subject: #23852 [Asn]: bcompiler: Assumes that --with-bz2 has been specified
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-16777@lists.php.net to get a copy of this message
ID: 23852 Updated by: alan_k@php.net Reported By: per at nobolt dot com Status: Assigned Bug Type: PEAR related Operating System: Debian GNU/Linux PHP Version: 4.3.1 Assigned To: alan_k New Comment: 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 :) Previous Comments: ------------------------------------------------------------------------ [2003-05-28 08:11:28] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23852&edit=1

« previous php.pear.dev (#16777) next »