Bug #16021 [Asn->Csd]: PHP 4 regression

From: Date: Sat, 14 Mar 2009 21:39:13 +0000
Subject: Bug #16021 [Asn->Csd]: PHP 4 regression
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-184@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=16021&edit=1 ID: 16021 Updated by: ken@linux.ie Reported By: jan at horde dot org Summary: PHP 4 regression -Status: Assigned +Status: Closed Type: Bug Package: Date_Holidays Package Version: 0.21.0 PHP Version: 4.4.9 Assigned To: kguest Roadmap Versions: New Comment: -Status: Assigned +Status: Closed This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Previous Comments: ------------------------------------------------------------------------ [2009-03-14 21:39:04] kguest verified... ------------------------------------------------------------------------ [2009-03-14 21:14:32] kguest -Assigned To: +Assigned To: kguest ------------------------------------------------------------------------ [2009-03-11 15:03:44] yunosh The patch also fixes the misspelled EasternChristian driver name. ------------------------------------------------------------------------ [2009-03-11 15:02:35] yunosh The following patch has been added/updated: Patch Name: driverName.patch URL: #patch bug:16021;patch:driverName.patch;revision:1236783755; ------------------------------------------------------------------------ [2009-03-11 14:51:29] yunosh Description: ------------ This snippet from Date_Holidays_Driver::addTranslation(): $name = get_class($this); $parts = explode("_", $name); $drivername = ucfirst($parts[3]); doesn't work on PHP 4, because get_class() returns class names all lower case in 4. Lowercasing or ucfirst() don't work here, because not all drivers work that way (UNO, USA). It's probably the safest to store the driver name in a class property. ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=16021&edit=1

« previous php.pear.bugs (#184) next »