Bug #10993: filesize on newly made/just opened file weirdness

From: Date: Mon, 21 May 2001 11:34:21 +0000
Subject: Bug #10993: filesize on newly made/just opened file weirdness
Groups: php.dev 
Request: Send a blank email to php-dev+get-56030@lists.php.net to get a copy of this message
From: wico@cnh.nl Operating system: linux PHP version: 4.0.5 PHP Bug Type: Filesystem function related Bug description: filesize on newly made/just opened file weirdness Hiya run this test script and and watch the output differ depending on using filesize or not $fp = fopen('file.test', "a+b"); //(un)comment this line filesize('file.test'); fwrite($fp, "boe"); fclose($fp); $fp2 = fopen('file.test', "a+b"); fseek($fp2, 0); echo fread($fp2, filesize('file.test')); unlink('file.test'); Greetz, Wico -- Edit Bug report at: http://bugs.php.net/?id=10993&edit=1

« previous php.dev (#56030) next »