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  


 [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] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!