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

Bug #2463 stream_write() does not update position
Submitted: 2004-10-05 15:32 UTC
From: yangbin at fragnetics dot com Assigned: hholzgra
Status: Closed Package: HTTP_WebDAV_Client
PHP Version: 4.3.9 OS: GNU/Linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


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 : 28 + 27 = ?

 
 [2004-10-05 15:32 UTC] yangbin at fragnetics dot com
Description: ------------ Using: PEAR package HTTP_WebDAV_Client - v0.9.6 pear/HTTP_WebDAV_Client/Client/Stream.php - patched to v1.5 Problem: Successive calls to stream_write() (via e.g. puts()) always writes the data in the same position. Reproduce code: --------------- ++++++++++++++++ reproduce code ++++++++++++++++ $file = fopen("webdav://someone:pass@webdav.somewhere.com/test", "w"); puts($file, "==================="); puts($file, "test"); +++++++++++++++++++++++++++ patch [in stream_write()] +++++++++++++++++++++++++++ case 200: case 201: case 204: $this->position += strlen($buffer); // add this line return $end-$start; Expected result: ---------------- in [$file]: ===================test Actual result: -------------- in [$file]: test===============

Comments

 [2005-01-09 11:58 UTC] hholzgra
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.