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

Bug #13229 Opening files for append does not place pointer at eof?
Submitted: 2008-02-27 09:34 UTC
From: aurs Assigned: hholzgra
Status: Closed Package: HTTP_WebDAV_Client (version 1.0.0)
PHP Version: 5.2.2 OS: CentOS 5
Roadmaps: (Not assigned)    

 [2008-02-27 09:34 UTC] aurs (Ove Aursand)
Description: ------------ Not exactly sure how I'm going to describe this problem, so I just copy some output from my cli here: # cat test.xml initial file... # php webdav-test.php # cat test.xml testing again.. # php webdav-test.php # cat test.xml testing again... # (Ok. So I edit the test.xml file:) # cat test.xml this is another test # php webdav-test.php # cat test.xml testing again.. test # From phpinfo(): './configure' '--with-apxs2=/usr/sbin/apxs' '--with-mysql' '--with-zlib' '--enable-soap' '--with-xmlrpc' '--enable-sockets' '--with-mysql' '--with-gettext' '--enable-mbstring=all' '--with-xsl' '--with-pgsql' '--with-openssl' '--with-gd' '--with-freetype-dir=/usr' '--with-jpeg-dir=/usr' '--enable-pdo' '--with-pdo-sqlite' '--with-pdo-pgsql' php -v: PHP 5.2.2 (cli) (built: May 4 2007 09:43:12) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies with XCache v1.2.0, Copyright (c) 2005-2006, by mOo DAV vhost in httpd.conf (removed some hostnames etc): <VirtualHost *:80> ServerName ********* ServerAdmin ******** DocumentRoot "/var/www/webdav/web/" DAVLockDB /tmp/DAVLock DAVMinTimeout 600 ErrorLog logs/*********-error_log CustomLog logs/********-access_log combined <Location /> DAV On AuthType Basic AuthName "WebDAV Restricted" AuthUserFile "**********" <Limit GET> Require valid-user </Limit> <LimitExcept GET> Require valid-user </LimitExcept> </Location> </VirtualHost> Please let me know if more info is needed. Test script: --------------- require_once "HTTP/WebDAV/Client.php"; $name = "webdav://"; $test = fopen($name .'test.xml', 'a'); fputs($test, "testing again..\n"); fclose($test); Expected result: ---------------- I expect the file test.xml to "grow" with lines saying "testing again..." over and over for each run of the script.


 [2008-02-27 09:39 UTC] cweiske (Christian Weiske)
Seems as if fopen appending does not work
 [2008-04-25 00:09 UTC] hholzgra (Hartmut Holzgraefe)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the 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. Works with Apache mod_dav now, but not with HTTP_WebDAV_Server ... will open a separate bug for that