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 #2498

Translation2::setLang() misses errorhandling

Details

Submitted2004-10-11 10:53 UTC
Fromtobias dot eberle at gmx dot de
Assignedquipo
StatusClosed
PackageTranslation2
PHP Version4.3.9
OSlinux
Roadmaps(Not assigned)

Comments

[2004-10-11 10:53 UTC] tobias dot eberle at gmx dot de

Description:
------------
Hallo,

Passing a not existing language to Translation2::setLang() results in a notice:
Notice: Undefined index: de in /usr/share/php/Translation2/Container.php on line 97
Notice: Undefined index: de in /usr/share/php/Translation2/Container.php on line 98

I think it's better setLang() would return a PEAR::Error

I used translation2 2.0.0-beta2

Bye, Tobias