Bug #16021 [Asn]: PHP 4 regression

From: Date: Sat, 14 Mar 2009 21:39:04 +0000
Subject: Bug #16021 [Asn]: PHP 4 regression
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-183@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 Type: Bug Package: Date_Holidays Package Version: 0.21.0 PHP Version: 4.4.9 Assigned To: kguest Roadmap Versions: New Comment: verified... Previous Comments: ------------------------------------------------------------------------ [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 (#183) next »