PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Internationalization » Translation2 » Bug #6585

Admin add string

Details

Submitted2006-01-25 22:02 UTC
Fromoffice at cws-trummer dot biz
Assignedquipo
StatusBogus
PackageTranslation2
PHP Version5.1.0
OSwin xp prof
Roadmaps(Not assigned)

Comments

[2006-01-25 22:02 UTC] office at cws-trummer dot biz

Description:
------------
Fatal error: Call to undefined method PEAR_Error::add() in C:\Programme\xampp\htdocs\simplydone\setup\translation.php on line 60

in de function add in admin.php storage->add is called. i use the container DB but i cant find a function add in db.php ...

Test script:
---------------
require_once 'Translation2/Admin.php';

$stringid = $_REQUEST["stringid"];
$pageid = $_REQUEST["pageid"];
$de = $_REQUEST["de"];
$en = $_REQUEST["en"];

$tr =& Translation2_Admin::factory("DB", "mysql:root:******@localost/*******");

$stringArray = array(
'de' => $de,
'en' => $en,
);

$tr->add($stringid, $pageid, $stringArray);

Expected result:
----------------
no error message :)

Actual result:
--------------
Fatal error: Call to undefined method PEAR_Error::add() in C:\Programme\xampp\htdocs\simplydone\setup\translation.php on line 60