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

ID: 16242
Updated by: daniel.oconnor@gmail.com
Reported By: emil at bit dot nl
Summary: arguments for createFresh in wrong order
-Status: Open
+Status: Verified
Type: Bug
Package: Net_LDAP2
Operating System: Ubuntu Linux
Package Version: 2.0.0RC6
PHP Version: 5.2.9
Roadmap Versions:
New Comment:

-Status: Open
+Status: Verified

Actually tests scripts really do help, because cvs can be different to
the released version.

I assume you are talking about:

http://cvs.php.net/viewvc.cgi/pear/Net_LDAP2/LDAP2/Entry.php?view=markup#l276

282 $entry = Net_LDAP2_Entry::createFresh($attrs, $dn);

vs

206 public static function createFresh($dn, $attrs = array())


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

[2009-05-20 15:19:26] emilwillems

Description:
------------
In Entry.php, line 282 the call to createFresh has the argument listed
in the wrong order. $entry becomes an PEAR_ERROR object and thus failing
the instanceof Net_LDAP2_ERROR check, causing a fatal error on line
286:

Fatal error: Call to undefined method PEAR_Error::markAsNew() in
/usr/share/php/Net/LDAP2/Entry.php on line 286


Test script:
---------------
No script attached, bug should be easily solvable using the description
above.

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

Search Discussions

  • Beni at May 26, 2009 at 1:30 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=16242&edit=1

    ID: 16242
    Updated by: beni@php.net
    Reported By: emil at bit dot nl
    Summary: arguments for createFresh in wrong order
    Status: Verified
    Type: Bug
    Package: Net_LDAP2
    Operating System: Ubuntu Linux
    Package Version: 2.0.0RC6
    PHP Version: 5.2.9
    -Assigned To:
    +Assigned To: beni
    -Roadmap Versions:
    +Roadmap Versions: 2.0.0
    New Comment:

    -Assigned To:
    +Assigned To: beni
    -Roadmap Versions:
    +Roadmap Versions: 2.0.0




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

    [2009-05-21 17:47:56] emilwillems

    Yes, the call on line 282 has $attrs and $dn switched around, I've
    "fixed" my installation of Net_LDAP2 by changing the line to:

    $entry = Net_LDAP2_Entry::createFresh($dn, $attrs);

    Works perfectly now.

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

    [2009-05-21 15:27:54] doconnor

    -Status: Open
    +Status: Verified

    Actually tests scripts really do help, because cvs can be different to
    the released version.

    I assume you are talking about:

    http://cvs.php.net/viewvc.cgi/pear/Net_LDAP2/LDAP2/Entry.php?view=markup#l276

    282 $entry = Net_LDAP2_Entry::createFresh($attrs, $dn);

    vs

    206 public static function createFresh($dn, $attrs = array())

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

    [2009-05-20 15:19:26] emilwillems

    Description:
    ------------
    In Entry.php, line 282 the call to createFresh has the argument listed
    in the wrong order. $entry becomes an PEAR_ERROR object and thus failing
    the instanceof Net_LDAP2_ERROR check, causing a fatal error on line
    286:

    Fatal error: Call to undefined method PEAR_Error::markAsNew() in
    /usr/share/php/Net/LDAP2/Entry.php on line 286


    Test script:
    ---------------
    No script attached, bug should be easily solvable using the description
    above.

    ------------------------------------------------------------------------
  • Beni at May 26, 2009 at 1:53 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=16242&edit=1

    ID: 16242
    Updated by: beni@php.net
    Reported By: emil at bit dot nl
    Summary: arguments for createFresh in wrong order
    -Status: Verified
    +Status: Closed
    Type: Bug
    Package: Net_LDAP2
    Operating System: Ubuntu Linux
    Package Version: 2.0.0RC6
    PHP Version: 5.2.9
    Assigned To: beni
    Roadmap Versions:
    New Comment:

    -Status: Verified
    +Status: Closed

    This bug has been fixed in CVS.

    If this was a documentation problem, the fix will appear on
    pear.php.net by the end of next Sunday (CET).

    If this was a problem with the pear.php.net website, the change should
    be live shortly.

    Otherwise, the fix will appear in the package's next release.

    Thank you for the report and for helping us make PEAR better.




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

    [2009-05-26 15:29:14] beni

    -Assigned To:
    +Assigned To: beni
    -Roadmap Versions:
    +Roadmap Versions: 2.0.0


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

    [2009-05-21 17:47:56] emilwillems

    Yes, the call on line 282 has $attrs and $dn switched around, I've
    "fixed" my installation of Net_LDAP2 by changing the line to:

    $entry = Net_LDAP2_Entry::createFresh($dn, $attrs);

    Works perfectly now.

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

    [2009-05-21 15:27:54] doconnor

    -Status: Open
    +Status: Verified

    Actually tests scripts really do help, because cvs can be different to
    the released version.

    I assume you are talking about:

    http://cvs.php.net/viewvc.cgi/pear/Net_LDAP2/LDAP2/Entry.php?view=markup#l276

    282 $entry = Net_LDAP2_Entry::createFresh($attrs, $dn);

    vs

    206 public static function createFresh($dn, $attrs = array())

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

    [2009-05-20 15:19:26] emilwillems

    Description:
    ------------
    In Entry.php, line 282 the call to createFresh has the argument listed
    in the wrong order. $entry becomes an PEAR_ERROR object and thus failing
    the instanceof Net_LDAP2_ERROR check, causing a fatal error on line
    286:

    Fatal error: Call to undefined method PEAR_Error::markAsNew() in
    /usr/share/php/Net/LDAP2/Entry.php on line 286


    Test script:
    ---------------
    No script attached, bug should be easily solvable using the description
    above.

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMay 21, '09 at 1:28p
activeMay 26, '09 at 1:53p
posts3
users2
websitepear.php.net

2 users in discussion

Beni: 2 posts Daniel Oconnor: 1 post

People

Translate

site design / logo © 2022 Grokbase