FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=19087&edit=1

ID: 19087
Updated by: beni@php.net
Reported By: jwohlers at waubonsee dot edu
Summary: Generates E_STRICT error due to use of
PEAR::isError()
-Status: Open
+Status: Assigned
Type: Bug
Package: Net_LDAP2
Operating System: Linux
Package Version: 2.0.12
PHP Version: 5.2.5
-Assigned To:
+Assigned To: beni
Roadmap Versions:
New Comment:

-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: beni



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

[2011-11-30 12:31:11] doconnor

It'd be good to convert to exceptions rather than the pear error
behaviour.

http://svn.php.net/viewvc/pear/packages/Net_LDAP2/trunk/Net/LDAP2.php?
view=markup

s/PEAR::raiseError/throw new Net_LDAP2_Exception/

I don't know if that counts as a BC break exactly - you didn't seem to
get much time
before it hit "2.0.0 stable".

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

[2011-11-29 18:17:52] cap60552

Description:
------------
The library generates a "Non-static method PEAR::isError() should not be
called statically" error if the php error level includes E_STRICT.



Test script:
---------------
Occurs with all sample code if the server has E_STRICT error level set.

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

Search Discussions

  • Beni at Dec 2, 2011 at 7:48 am
    Edit report at https://pear.php.net/bugs/bug.php?id=19087&edit=1

    ID: 19087
    Updated by: beni@php.net
    Reported By: jwohlers at waubonsee dot edu
    Summary: Generates E_STRICT error due to use of
    PEAR::isError()
    Status: Assigned
    Type: Bug
    Package: Net_LDAP2
    Operating System: Linux
    Package Version: 2.0.12
    PHP Version: 5.2.5
    Assigned To: beni
    Roadmap Versions:
    New Comment:

    May be related to #18422.
    And yes, we should switch to exceptions, but this will introdce a huge
    change.


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

    [2011-12-02 08:43:11] beni

    -Status: Open
    +Status: Assigned
    -Assigned To:
    +Assigned To: beni


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

    [2011-11-30 12:31:11] doconnor

    It'd be good to convert to exceptions rather than the pear error
    behaviour.

    http://svn.php.net/viewvc/pear/packages/Net_LDAP2/trunk/Net/LDAP2.php?
    view=markup

    s/PEAR::raiseError/throw new Net_LDAP2_Exception/

    I don't know if that counts as a BC break exactly - you didn't seem to
    get much time
    before it hit "2.0.0 stable".

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

    [2011-11-29 18:17:52] cap60552

    Description:
    ------------
    The library generates a "Non-static method PEAR::isError() should not be
    called statically" error if the php error level includes E_STRICT.



    Test script:
    ---------------
    Occurs with all sample code if the server has E_STRICT error level set.

    ------------------------------------------------------------------------
  • Beni at Dec 2, 2011 at 7:49 am
    Edit report at https://pear.php.net/bugs/bug.php?id=19087&edit=1

    ID: 19087
    Updated by: beni@php.net
    Reported By: jwohlers at waubonsee dot edu
    Summary: Generates E_STRICT error due to use of
    PEAR::isError()
    Status: Assigned
    Type: Bug
    Package: Net_LDAP2
    Operating System: Linux
    Package Version: 2.0.12
    PHP Version: 5.2.5
    Assigned To: beni
    Roadmap Versions:
    New Comment:

    A fix for the non-exception method could be, that all PEAR::.... calls
    are made through the $ldap object.


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

    [2011-12-02 08:47:45] beni

    May be related to #18422.
    And yes, we should switch to exceptions, but this will introdce a huge
    change.

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

    [2011-12-02 08:43:11] beni

    -Status: Open
    +Status: Assigned
    -Assigned To:
    +Assigned To: beni


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

    [2011-11-30 12:31:11] doconnor

    It'd be good to convert to exceptions rather than the pear error
    behaviour.

    http://svn.php.net/viewvc/pear/packages/Net_LDAP2/trunk/Net/LDAP2.php?
    view=markup

    s/PEAR::raiseError/throw new Net_LDAP2_Exception/

    I don't know if that counts as a BC break exactly - you didn't seem to
    get much time
    before it hit "2.0.0 stable".

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

    [2011-11-29 18:17:52] cap60552

    Description:
    ------------
    The library generates a "Non-static method PEAR::isError() should not be
    called statically" error if the php error level includes E_STRICT.



    Test script:
    ---------------
    Occurs with all sample code if the server has E_STRICT error level set.

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedDec 2, '11 at 7:43a
activeDec 2, '11 at 7:49a
posts3
users1
websitepear.php.net

1 user in discussion

Beni: 3 posts

People

Translate

site design / logo © 2021 Grokbase