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

Bug #15683 Passing null to HTTP_Request causes warnings
Submitted: 2009-01-20 00:27 UTC
From: shupp Assigned: doconnor
Status: Closed Package: Services_Yadis (version 0.2.2)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2009-01-20 00:27 UTC] shupp (Bill Shupp)
Description: ------------ $_httpRequestOptions defaults to null, but HTTP_Request is expecting it to be an array. $_httpRequestOptions should default to an empty array. Test script: --------------- <?php require_once 'Services/Yadis.php'; $openid = 'https://me.yahoo.com'; $yadis = new Services_Yadis($openid); $yadis->addNamespace('openid', 'http://openid.net/xmlns/1.0'); $serviceList = $yadis->discover(); ?> Expected result: ---------------- (void) Actual result: -------------- Warning: Invalid argument supplied for foreach() in /Users/shupp/pear/PEAR/HTTP/Request.php on line 335 Warning: Invalid argument supplied for foreach() in /Users/shupp/pear/PEAR/HTTP/Request.php on line 335

Comments

 [2009-05-24 20:29 UTC] doconnor (Daniel O'Connor)
-Status: Analyzed +Status: Closed -Assigned To: +Assigned To: doconnor
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.