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)    

 [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://", "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===============


 [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 In case this was a 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.