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

Bug #1034 gzclose(): suppliead argument is not a valid stream resource
Submitted: 2004-03-19 09:42 UTC
From: ordnas Assigned: vblavet
Status: Closed Package: Archive_Tar
PHP Version: 4.3.4 OS: Windows
Roadmaps: (Not assigned)    
Subscription  


 [2004-03-19 09:42 UTC] ordnas
Description: ------------ when doing $tar = new Archive_Tar('test.tgz', true) i get an error "gzclose(): suppliead argument is not a valid stream resource" tested with 1.1. and currently latest CVS version The problem seems to be in Archive_Tar::_close() it should not test "if(isset($this->_file))", but "if($this->_file != 0)" Best solution seems to be a check "if(is_resource($this->_file))"

Comments

 [2004-05-08 09:50 UTC] vblavet
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. Fixed in CVS (1.19). Archive_Tar is present in Package section but also as a copy in PEAR section. Need to synchronize both version.