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

Bug #2498 Translation2::setLang() misses errorhandling
Submitted: 2004-10-11 10:53 UTC
From: tobias dot eberle at gmx dot de Assigned: quipo
Status: Closed Package: Translation2
PHP Version: 4.3.9 OS: linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 39 - 20 = ?

 
 [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

Comments

 [2004-10-18 13:06 UTC] quipo
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.