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

Bug #18337 Call to undefined method File_Archive_Reader_ChangeName
Submitted: 2011-03-04 22:06 UTC
From: ocyssau Assigned:
Status: Open Package: File_Archive (version 1.5.4)
PHP Version: 5.3.5 OS: Ubuntu
Roadmaps: (Not assigned)    
Subscription  


 [2011-03-04 22:06 UTC] ocyssau (Olivier Cyssau)
Description: ------------ Error Call to undefined method File_Archive_Reader_ChangeName on 5.3.2-1ubuntu4.7 To solve, replace php4 constructors call (name of class in function name) by __construct(). Example : In File/Archive/Reader/ChangeName/Directory.php, line 53, replace parent::File_Archive_Reader_ChangeName($source); by parent::__construct($source); This error occur because function File_Archive_Reader_ChangeName is not define in File_Archive_Reader_ChangeName class Test script: --------------- $file = /my/file.tar require_once 'File/Archive.php'; $result = File_Archive::read("$file/"); Actual result: -------------- PHP Fatal error: Call to undefined method File_Archive_Reader_ChangeName::File_Archive_Reader_ChangeName() in /SHARES/SIER/SCRIPTS/ranchbe/lib/PEAR/File/Archive/Reader/ChangeName/Directory.php on line 53

Comments