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

Bug #2890 getLang() notices if setLang() is not falled before
Submitted: 2004-12-04 20:04 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 : 10 + 7 = ?

 
 [2004-12-04 20:04 UTC] tobias dot eberle at gmx dot de
Description: ------------ If I call Translation2::getLang(id) without calling Translation2::setLang(id) before, I get a notice: Notice: Undefined index: id in /usr/share/php/Translation2.php on line 274 Reproduce code: --------------- $cTranslation2 = Translation2::factory(...); //we dont call setLang() here $cTranslation2->getLang(id) Expected result: ---------------- no notice Actual result: -------------- Notice: Undefined index: id in /usr/share/php/Translation2.php on line 274

Comments

 [2004-12-05 16:00 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.