Bug #16759 [Asn->Csd]: No error thrown from missing PHP zlib functions

From: Date: Thu, 16 Feb 2012 19:31:22 +0000
Subject: Bug #16759 [Asn->Csd]: No error thrown from missing PHP zlib functions
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-8279@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=16759&edit=1 ID: 16759 Updated by: mrook@php.net Reported By: bergie at iki dot fi Summary: No error thrown from missing PHP zlib functions -Status: Assigned +Status: Closed Type: Bug Package: Archive_Tar Operating System: Ubuntu 9.10 Package Version: 1.3.3 PHP Version: 5.2.5 Assigned To: mrook -Roadmap Versions: +Roadmap Versions: 1.3.9 New Comment: -Status: Assigned +Status: Closed -Roadmap Versions: +Roadmap Versions: 1.3.9 This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Added an additional function_exists() call before gzopen/bzopen to catch this issue should it ever happen again. Previous Comments: ------------------------------------------------------------------------ [2010-04-26 08:07:54] mrook -Roadmap Versions: 1.3.4 +Roadmap Versions: ------------------------------------------------------------------------ [2009-11-25 20:41:23] mrook Archive_Tar does check if the zlib extension is available, and calls PEAR::raiseError() if it isn't. ------------------------------------------------------------------------ [2009-11-25 20:30:32] mrook -Status: Open +Status: Assigned -Assigned To: +Assigned To: mrook ------------------------------------------------------------------------ [2009-11-03 17:47:47] ashnazg The source of the issue was in Ubuntu Karmic (see PEAR #16606 and Ubuntu #451314), but this new PEAR bug highlights the _reason_ for the *silent* failure. This "@" usage should probably be reviewed in light of the silent failure problems. ------------------------------------------------------------------------ [2009-11-02 15:12:51] bergie Description: ------------ I tried to install PEAR packages on Ubuntu 9.10, but as there PHP comes without zlib (see https://bugs.launchpad.net/ubuntu/+source/php5/+bug/451405), Archive_Tar cannot open the packages. But as the zlib functions are run in silent mode this doesn't throw any errors, making in look like install succeeded. Some error should be thrown if the function cannot be found! Archive_Tar line 658: is the issue here if ($this->_compress_type == 'gz') $this->_file = @gzopen($v_filename, "rb"); ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=16759&edit=1

« previous php.pear.bugs (#8279) next »