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

Bug #14080 Suppress warning
Submitted: 2008-06-05 09:40 UTC
From: kawai Assigned: hholzgra
Status: Closed Package: HTTP_WebDAV_Client (version CVS)
PHP Version: 5.2.6 OS:
Roadmaps: (Not assigned)    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 1 + 23 = ?

 
 [2008-06-05 09:40 UTC] kawai (Hiroaki Kawai)
Description: ------------ Thank you for adding the feature of user_agent configuration. Current CVS version have a problem about error_reporting that cause warning in a normal use. Test script: --------------- <?php ini_set('error_reporting',E_ALL); require_once('HTTP/WebDAV/Client.php'); $items = scandir('webdav://127.0.0.1/dav/'); var_dump($items); Expected result: ---------------- array(2) { [0]=> string(11) "desktop.ini" [1]=> string(8) "test.txt" } Actual result: -------------- Warning: stream_context_get_options() expects parameter 1 to be resource, null given in D:\apache\front\htdocs\b\HTTP\WebDAV\Client\Stream.php on line 784 array(2) { [0]=> string(11) "desktop.ini" [1]=> string(8) "test.txt" }

Comments

 [2008-06-11 16:23 UTC] hholzgra (Hartmut Holzgraefe)
I added a check for stream context existence now in CVS. I couldn't test it yet though, can you check that it works fine with and without setting the user agent?
 [2008-06-11 21:33 UTC] hholzgra (Hartmut Holzgraefe)
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. tested ok