FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=18338&edit=1

ID: 18338
Updated by: daniel.oconnor@gmail.com
Reported By: olivier dot cyssau at acensea dot com
Summary: Call to undefined method
File_Archive_Reader_ChangeName
-Status: Open
+Status: Duplicate
Type: Bug
Package: File_Archive
Operating System: Ubuntu
Package Version: 1.5.4
PHP Version: 5.3.5
Roadmap Versions:
New Comment:

-Status: Open
+Status: Duplicate
Bug #18337


Previous Comments:
------------------------------------------------------------------------

[2011-03-04 17:09:20] ocyssau

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

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMar 6, '11 at 10:54p
activeMar 6, '11 at 10:54p
posts1
users1
websitepear.php.net

1 user in discussion

Daniel Oconnor: 1 post

People

Translate

site design / logo © 2022 Grokbase