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

Bug #2541 [PATCH] warning with E_ALL
Submitted: 2004-10-15 20:15 UTC
From: ieure at php dot net Assigned: mike
Status: Closed Package: I18Nv2
PHP Version: 4.2.0 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2004-10-15 20:15 UTC] ieure at php dot net
Description: ------------ When using I18Nv2 on older (4.1.x) versions of PHP, a warning is displayed: 'Undefined property: language in /usr/local/var/www/dev/coldjet.com/pear/I18Nv2/Co mmonList.php on line 94' Early versions of PHP treat unset class variables as nonexistent instead of empty. This patch adds an isset() check before accessing the property. An alternate fix is to explicitly set the variable to '' when it's defined. http://atomized.org/PEAR/Patches/I18Nv2-Language_Undefined.patch I know that I should upgrade to a newer PHP version, but that's not currently an option for me. Please consider applying this patch.

Comments

 [2004-10-18 08:32 UTC] mike
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. Ouch, thanks a lot!