FAQ
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 [...]

------------------------------------------------------------------------

Search Discussions

  • Daniel Oconnor at Sep 14, 2009 at 2:55 am
    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
    +Status: Verified
    Type: Bug
    Package: Date_Holidays
    Operating System: Windows XP SP2
    Package Version: 0.21.4
    PHP Version: 5.3.0
    Roadmap Versions:
    New Comment:

    -Status: Open
    +Status: Verified



    Previous Comments:
    ------------------------------------------------------------------------

    [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 [...]

    ------------------------------------------------------------------------
  • Ken at Sep 18, 2009 at 9:01 am
    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 [...]

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedSep 14, '09 at 2:55a
activeSep 18, '09 at 9:01a
posts3
users2
websitepear.php.net

2 users in discussion

Daniel Oconnor: 2 posts Ken: 1 post

People

Translate

site design / logo © 2022 Grokbase