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

Bug #4916 Fatal error when using extract()
Submitted: 2005-07-26 08:31 UTC
From: arthur at movenext dot nl Assigned: vincentlascaux
Status: Closed Package: File_Archive
PHP Version: 4.3.11 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2005-07-26 08:31 UTC] arthur at movenext dot nl
Description: ------------ I get a fatal error when extracting an archive with File_Archive 1.5.0. When I'm using the same script in version 1.4.1 everything works fine. Fatal error: Undefined class name 'file_archive_reader' in /usr/share/php/File/Archive.php on line 298 Test script: --------------- $file = "file.bz2"; $src = "$file/"; echo "Extracting $file\n"; $result = File_Archive::extract($src, File_Archive::toFiles()); Expected result: ---------------- File is extracted

Comments

 [2005-07-26 09:08 UTC] vincentlascaux
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/File_Archive A require_once was missing. Thanks for the report