Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0

Request #16212 Die is not exception
Submitted: 2009-05-11 00:52 UTC
From: lfamorim Assigned: mrook
Status: Closed Package: Archive_Tar (version 1.3.3)
PHP Version: 5.2.9 OS: Linux Debian
Roadmaps: 1.3.4    

 [2009-05-11 00:52 UTC] lfamorim (Lucas Fernando Amorim)
Description: ------------ In Archive_Tar exists two exceptions being treated as death, this is bad because my script ends whith the class. Test script: --------------- <?php $package = new Archive_Tar; try { Archive_Tar('dieTest.tar.lzma','lzma'); } catch (Exception $e) { print "Fail: " . $e->getMessage(); } echo "Hi ~D"; Expected result: ---------------- Fail: Unsupported compression type 'lzma' 145 "Supported types are 'gz' and 'bz2' Hi ~D Actual result: -------------- Unsupported compression type 'lzma' 145 "Supported types are 'gz' and 'bz2'


 [2009-05-13 20:45 UTC] doconnor (Daniel O'Connor)
Unfortunately, Archive_Tar is PHP 4 Returning a PEAR_Error, perhaps, but no exceptions unfortunately. Also, I don't think there are any lzma handlers in PHP floating around:
 [2009-09-02 14:18 UTC] mrook (Michiel Rook)
-Status: Open +Status: Closed -Assigned To: +Assigned To: mrook
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the 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.