Bug #16595 [Opn]: Inkompatibility to current version of PHP

From: Date: Mon, 14 Sep 2009 03:55:14 +0000
Subject: Bug #16595 [Opn]: Inkompatibility to current version of PHP
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-1613@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=16595&edit=1 ID: 16595 Updated by: daniel.oconnor@gmail.com Reported By: sebi at gohres dot de Summary: Inkompatibility to current version of PHP Status: Open Type: Bug Package: Date_Holidays Operating System: Windows XP SP2 Package Version: 0.21.4 PHP Version: 5.3.0 Roadmap Versions: New Comment: if (!is_object($data)) { return false; } is a better solution. Previous Comments: ------------------------------------------------------------------------ [2009-09-11 14:34:19] sebi82 Description: ------------ In Holidays.php line 365 you should replace $errorClass = get_class($data); by $errorClass = get_class((Object)$data); in order to solve error messages like warning: get_class() expects parameter 1 to be object, xxx given [...] ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=16595&edit=1

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