Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.5.3

Bug #19236 Wrong parameters for Exception
Submitted: 2012-01-22 06:05 UTC
From: cweiske Assigned: cweiske
Status: Closed Package: Services_Yadis (version 0.5.1)
PHP Version: 5.3.6 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2012-01-22 06:05 UTC] cweiske (Christian Weiske)
Description: ------------ I get the following error: Fatal error: Wrong parameters for Exception([string $exception [, long $code [, Exception $previous = NULL]]]) in /usr/share/php/Services/Yadis.php on line 546 The code is: throw new Services_Yadis_Exception( 'Invalid response to Yadis protocol received: ' . $e->getMessage(), $e->getMessage() ); the message is used 2 times, the 2nd time should be the code, not the message. (Services_Yadis_Exception extends Exception without any overwritten methods).

Comments

 [2013-11-16 17:06 UTC] undera (Andrey Pohilko)
Is there any chance for this to be fixed? The fix is trivial, just remove second parameter "$e->getMessage()".
 [2014-05-19 13:00 UTC] cweiske (Christian Weiske)
-Status: Open +Status: Closed -Assigned To: +Assigned To: cweiske
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/ Fixed with release 0.5.2