Bug #16595 [Ver]: Inkompatibility to current version of PHP
| From: | ken at linux dot ie | Date: | Fri, 18 Sep 2009 10:00:48 +0000 |
| Subject: | Bug #16595 [Ver]: Inkompatibility to current version of PHP | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-1673@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: ken@linux.ie
Reported By: sebi at gohres dot de
Summary: Inkompatibility to current version of PHP
Status: Verified
Type: Bug
Package: Date_Holidays
Operating System: Windows XP SP2
Package Version: 0.21.4
PHP Version: 5.3.0
-Assigned To:
+Assigned To: kguest
Roadmap Versions:
New Comment:
-Assigned To:
+Assigned To: kguest
Previous Comments:
------------------------------------------------------------------------
[2009-09-14 04:55:28] doconnor
-Status: Open
+Status: Verified
------------------------------------------------------------------------
[2009-09-14 04:55:14] doconnor
if (!is_object($data)) {
return false;
}
is a better solution.
------------------------------------------------------------------------
[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