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

Request #16212 Die is not exception
Submitted: 2009-05-10 19:52 UTC Modified: 2009-09-02 09:18 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    
Subscription  


 [2009-05-10 19: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'

Comments

 [2009-05-13 15:45 UTC] doconnor (Daniel O'Connor)
Unfortunately, Archive_Tar is PHP 4 Returning a PEAR_Error, perhaps, but no exceptions unfortunately. http://cvs.php.net/viewvc.cgi/pear/Archive_Tar/Archive/Tar.php?view=markup#l144 Also, I don't think there are any lzma handlers in PHP floating around: http://au.php.net/manual/en/refs.compression.php
 [2009-09-02 09: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 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.