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

ID: 19153
Updated by: till@php.net
Reported By: jam at zoidtechnologies dot com
Summary: Wrong Parameters for Exception
Status: Open
Type: Bug
Package: HTTP_Session2
Operating System: Debian Squeeze
Package Version: SVN
PHP Version: 5.3.7
-Roadmap Versions:
+Roadmap Versions: 0.8.0
New Comment:

-Roadmap Versions:
+Roadmap Versions: 0.8.0
Do you have a stack trace? (Enable xdebug to get one)

I'm not sure where this is coming from.

There's two issues in one. I'm not even sure if this is from
HTTP_Session2 code or if
this is your error handler around it.


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

[2011-12-21 15:33:10] jonez

Description:
------------
PHP Warning: PEAR_ERROR_EXCEPTION is obsolete, use class PEAR_Exception
for exceptions in /usr/share/php/PEAR.php on line 894
PHP Fatal error: Wrong parameters for Exception([string $exception [,
long $code [, Exception $previous = NULL]]]) in
/usr/share/php/PEAR.php(895) : eval()'d code on line 1

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

Search Discussions

  • Till at Dec 21, 2011 at 3:56 pm
    Edit report at https://pear.php.net/bugs/bug.php?id=19153&edit=1

    ID: 19153
    Updated by: till@php.net
    Reported By: jam at zoidtechnologies dot com
    Summary: Wrong Parameters for Exception
    Status: Open
    Type: Bug
    Package: HTTP_Session2
    Operating System: Debian Squeeze
    Package Version: SVN
    PHP Version: 5.3.7
    -Assigned To:
    +Assigned To: till
    Roadmap Versions:
    New Comment:

    -Assigned To:
    +Assigned To: till



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

    [2011-12-21 16:56:17] till

    -Roadmap Versions:
    +Roadmap Versions: 0.8.0
    Do you have a stack trace? (Enable xdebug to get one)

    I'm not sure where this is coming from.

    There's two issues in one. I'm not even sure if this is from
    HTTP_Session2 code or if
    this is your error handler around it.

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

    [2011-12-21 15:33:10] jonez

    Description:
    ------------
    PHP Warning: PEAR_ERROR_EXCEPTION is obsolete, use class PEAR_Exception
    for exceptions in /usr/share/php/PEAR.php on line 894
    PHP Fatal error: Wrong parameters for Exception([string $exception [,
    long $code [, Exception $previous = NULL]]]) in
    /usr/share/php/PEAR.php(895) : eval()'d code on line 1

    ------------------------------------------------------------------------
  • Jam at Dec 21, 2011 at 4:15 pm
    Edit report at https://pear.php.net/bugs/bug.php?id=19153&edit=1

    ID: 19153
    Comment by: jam@zoidtechnologies.com
    Reported By: jam at zoidtechnologies dot com
    Summary: Wrong Parameters for Exception
    Status: Assigned
    Type: Bug
    Package: HTTP_Session2
    Operating System: Debian Squeeze
    Package Version: SVN
    PHP Version: 5.3.7
    Assigned To: till
    Roadmap Versions:
    New Comment:

    I am not able to reliably trigger this issue.


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

    [2011-12-21 16:56:26] till

    -Assigned To:
    +Assigned To: till


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

    [2011-12-21 16:56:17] till

    -Roadmap Versions:
    +Roadmap Versions: 0.8.0
    Do you have a stack trace? (Enable xdebug to get one)

    I'm not sure where this is coming from.

    There's two issues in one. I'm not even sure if this is from
    HTTP_Session2 code or if
    this is your error handler around it.

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

    [2011-12-21 15:33:10] jonez

    Description:
    ------------
    PHP Warning: PEAR_ERROR_EXCEPTION is obsolete, use class PEAR_Exception
    for exceptions in /usr/share/php/PEAR.php on line 894
    PHP Fatal error: Wrong parameters for Exception([string $exception [,
    long $code [, Exception $previous = NULL]]]) in
    /usr/share/php/PEAR.php(895) : eval()'d code on line 1

    ------------------------------------------------------------------------
  • Jam at Dec 21, 2011 at 9:29 pm
    Edit report at https://pear.php.net/bugs/bug.php?id=19153&edit=1

    ID: 19153
    Comment by: jam@zoidtechnologies.com
    Reported By: jam at zoidtechnologies dot com
    Summary: Wrong Parameters for Exception
    Status: Assigned
    Type: Bug
    Package: HTTP_Session2
    Operating System: Debian Squeeze
    Package Version: SVN
    PHP Version: 5.3.7
    Assigned To: till
    Roadmap Versions:
    New Comment:

    I went through and modified most of the files in the package to use
    raiseError() instead of 'throw', but that did not resolve the issue.

    I am testing another of my sites, and I consistently get a WSOD when
    trying to use the package. When I comment out my calls into the package,
    the site displays normally.


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

    [2011-12-21 17:15:16] jonez

    I am not able to reliably trigger this issue.

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

    [2011-12-21 16:56:26] till

    -Assigned To:
    +Assigned To: till


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

    [2011-12-21 16:56:17] till

    -Roadmap Versions:
    +Roadmap Versions: 0.8.0
    Do you have a stack trace? (Enable xdebug to get one)

    I'm not sure where this is coming from.

    There's two issues in one. I'm not even sure if this is from
    HTTP_Session2 code or if
    this is your error handler around it.

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

    [2011-12-21 15:33:10] jonez

    Description:
    ------------
    PHP Warning: PEAR_ERROR_EXCEPTION is obsolete, use class PEAR_Exception
    for exceptions in /usr/share/php/PEAR.php on line 894
    PHP Fatal error: Wrong parameters for Exception([string $exception [,
    long $code [, Exception $previous = NULL]]]) in
    /usr/share/php/PEAR.php(895) : eval()'d code on line 1

    ------------------------------------------------------------------------
  • Till at Dec 23, 2011 at 5:48 pm
    Edit report at https://pear.php.net/bugs/bug.php?id=19153&edit=1

    ID: 19153
    Updated by: till@php.net
    Reported By: jam at zoidtechnologies dot com
    Summary: Wrong Parameters for Exception
    Status: Assigned
    Type: Bug
    -Package: HTTP_Session2
    +Package: MDB2
    Operating System: Debian Squeeze
    Package Version: SVN
    PHP Version: 5.3.7
    Assigned To: till
    -Roadmap Versions: 0.8.0
    +Roadmap Versions:
    New Comment:

    -Package: HTTP_Session2
    +Package: MDB2
    -Roadmap Versions: 0.8.0
    +Roadmap Versions:
    Assigning this bug to MDB2 since I can't fix it in HTTP_Session2.


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

    [2011-12-21 22:29:44] jonez

    I went through and modified most of the files in the package to use
    raiseError() instead of 'throw', but that did not resolve the issue.

    I am testing another of my sites, and I consistently get a WSOD when
    trying to use the package. When I comment out my calls into the package,
    the site displays normally.

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

    [2011-12-21 17:15:16] jonez

    I am not able to reliably trigger this issue.

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

    [2011-12-21 16:56:26] till

    -Assigned To:
    +Assigned To: till


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

    [2011-12-21 16:56:17] till

    -Roadmap Versions:
    +Roadmap Versions: 0.8.0
    Do you have a stack trace? (Enable xdebug to get one)

    I'm not sure where this is coming from.

    There's two issues in one. I'm not even sure if this is from
    HTTP_Session2 code or if
    this is your error handler around it.

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

    [2011-12-21 15:33:10] jonez

    Description:
    ------------
    PHP Warning: PEAR_ERROR_EXCEPTION is obsolete, use class PEAR_Exception
    for exceptions in /usr/share/php/PEAR.php on line 894
    PHP Fatal error: Wrong parameters for Exception([string $exception [,
    long $code [, Exception $previous = NULL]]]) in
    /usr/share/php/PEAR.php(895) : eval()'d code on line 1

    ------------------------------------------------------------------------
  • Jam at Dec 23, 2011 at 5:50 pm
    Edit report at https://pear.php.net/bugs/bug.php?id=19153&edit=1

    ID: 19153
    Comment by: jam@zoidtechnologies.com
    Reported By: jam at zoidtechnologies dot com
    Summary: Wrong Parameters for Exception
    Status: Open
    Type: Bug
    Package: MDB2
    Operating System: Debian Squeeze
    PHP Version: 5.3.7
    Roadmap Versions:
    New Comment:

    The issue is the way MDB2 uses Error objects. It does not pass a
    "message" parameter, which PEAR's error handler is expecting.


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

    [2011-12-23 18:49:00] till

    -Package: HTTP_Session2
    +Package: MDB2
    -Roadmap Versions: 0.8.0
    +Roadmap Versions:
    Assigning this bug to MDB2 since I can't fix it in HTTP_Session2.

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

    [2011-12-21 22:29:44] jonez

    I went through and modified most of the files in the package to use
    raiseError() instead of 'throw', but that did not resolve the issue.

    I am testing another of my sites, and I consistently get a WSOD when
    trying to use the package. When I comment out my calls into the package,
    the site displays normally.

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

    [2011-12-21 17:15:16] jonez

    I am not able to reliably trigger this issue.

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

    [2011-12-21 16:56:26] till

    -Assigned To:
    +Assigned To: till


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

    [2011-12-21 16:56:17] till

    -Roadmap Versions:
    +Roadmap Versions: 0.8.0
    Do you have a stack trace? (Enable xdebug to get one)

    I'm not sure where this is coming from.

    There's two issues in one. I'm not even sure if this is from
    HTTP_Session2 code or if
    this is your error handler around it.

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

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    http://pear.php.net/bugs/bug.php?id=19153
  • Danielc at Dec 23, 2011 at 7:23 pm
    Edit report at https://pear.php.net/bugs/bug.php?id=19153&edit=1

    ID: 19153
    Updated by: danielc@analysisandsolutions.com
    Reported By: jam at zoidtechnologies dot com
    Summary: Wrong Parameters for Exception
    -Status: Open
    +Status: Closed
    Type: Bug
    Package: MDB2
    Operating System: Debian Squeeze
    PHP Version: 5.3.7
    -Assigned To:
    +Assigned To: danielc
    Roadmap Versions:
    New Comment:

    -Status: Open
    +Status: Closed
    -Assigned To:
    +Assigned To: danielc
    This was happening when taking a PEAR_Error object returned by
    MDB2::raiseError() and passing it back to PEAR::raiseError(). When
    PEAR::raiseError() receives an object, it mistakenly assumes the
    destination/wrapper error_object's constructor has a $message parameter.
    MDB2_Error::__construct() does not, so the $code parameter's value was
    getting passed to the $mode parameter and mayhem ensued due to
    unexpected modes of operation.

    This has been fixed by adding reflection to PEAR::raiseError() in commit
    6cbc32b6cf79094fb267621ed2090567eca41bd4.


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

    [2011-12-23 18:51:05] jonez

    The issue is the way MDB2 uses Error objects. It does not pass a
    "message" parameter, which PEAR's error handler is expecting.

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

    [2011-12-23 18:49:00] till

    -Package: HTTP_Session2
    +Package: MDB2
    -Roadmap Versions: 0.8.0
    +Roadmap Versions:
    Assigning this bug to MDB2 since I can't fix it in HTTP_Session2.

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

    [2011-12-21 22:29:44] jonez

    I went through and modified most of the files in the package to use
    raiseError() instead of 'throw', but that did not resolve the issue.

    I am testing another of my sites, and I consistently get a WSOD when
    trying to use the package. When I comment out my calls into the package,
    the site displays normally.

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

    [2011-12-21 17:15:16] jonez

    I am not able to reliably trigger this issue.

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

    [2011-12-21 16:56:26] till

    -Assigned To:
    +Assigned To: till


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

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    http://pear.php.net/bugs/bug.php?id=19153
  • Danielc at Dec 23, 2011 at 7:26 pm
    Edit report at https://pear.php.net/bugs/bug.php?id=19153&edit=1

    ID: 19153
    Updated by: danielc@analysisandsolutions.com
    Reported By: jam at zoidtechnologies dot com
    Summary: Wrong Parameters for Exception
    Status: Closed
    Type: Bug
    -Package: MDB2
    +Package: PEAR
    Operating System: Debian Squeeze
    PHP Version: 5.3.7
    Assigned To: danielc
    Roadmap Versions:
    New Comment:

    -Package: MDB2
    +Package: PEAR



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

    [2011-12-23 20:23:36] danielc

    -Status: Open
    +Status: Closed
    -Assigned To:
    +Assigned To: danielc
    This was happening when taking a PEAR_Error object returned by
    MDB2::raiseError() and passing it back to PEAR::raiseError(). When
    PEAR::raiseError() receives an object, it mistakenly assumes the
    destination/wrapper error_object's constructor has a $message parameter.
    MDB2_Error::__construct() does not, so the $code parameter's value was
    getting passed to the $mode parameter and mayhem ensued due to
    unexpected modes of operation.

    This has been fixed by adding reflection to PEAR::raiseError() in commit
    6cbc32b6cf79094fb267621ed2090567eca41bd4.

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

    [2011-12-23 18:51:05] jonez

    The issue is the way MDB2 uses Error objects. It does not pass a
    "message" parameter, which PEAR's error handler is expecting.

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

    [2011-12-23 18:49:00] till

    -Package: HTTP_Session2
    +Package: MDB2
    -Roadmap Versions: 0.8.0
    +Roadmap Versions:
    Assigning this bug to MDB2 since I can't fix it in HTTP_Session2.

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

    [2011-12-21 22:29:44] jonez

    I went through and modified most of the files in the package to use
    raiseError() instead of 'throw', but that did not resolve the issue.

    I am testing another of my sites, and I consistently get a WSOD when
    trying to use the package. When I comment out my calls into the package,
    the site displays normally.

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

    [2011-12-21 17:15:16] jonez

    I am not able to reliably trigger this issue.

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

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    http://pear.php.net/bugs/bug.php?id=19153

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedDec 21, '11 at 3:56p
activeDec 23, '11 at 7:26p
posts8
users3
websitepear.php.net

3 users in discussion

Jam: 3 posts Till: 3 posts Danielc: 2 posts

People

Translate

site design / logo © 2022 Grokbase