#22708 [NEW]: writting output to filesystem doesn't work

From: Date: Fri, 14 Mar 2003 19:14:28 +0000
Subject: #22708 [NEW]: writting output to filesystem doesn't work
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-35618@lists.php.net to get a copy of this message
From: ron dot petty at unigeek dot com Operating system: Redhat 8 PHP version: 4.3.1 PHP Bug Type: Filesystem function related Bug description: writting output to filesystem doesn't work This is on the command line, not through a browser. I have wrote some code that reads a file in, modifies it then writes it out to disk. Then the script reads it back in, however the size is 0. If I look at the file on the filesystem it is not zero and is correct. I have tried flush, but that seems to only apply to web based stuff. I am running this on the command line. I do fclose the file from the previous write. I know a work around is to not write anything to the file until its done but this should still work. 1)open file 2)change contents 3)save file 4)open file file size is incorrect 0, filesystem says it is >0 and correct. I have the script, but don't know where to upload it? Thank you. Ron -- Edit bug report at http://bugs.php.net/?id=22708&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22708&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22708&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22708&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22708&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22708&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22708&r=support Expected behavior: http://bugs.php.net/fix.php?id=22708&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22708&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22708&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22708&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22708&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22708&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22708&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22708&r=gnused

« previous php.bugs (#35618) next »