#35495 [Fbk->Opn]: feof() does not report EOF on a zero file

2005-11-30 Thread dsp at tdcspace dot dk
 ID:   35495
 User updated by:  dsp at tdcspace dot dk
 Reported By:  dsp at tdcspace dot dk
-Status:   Feedback
+Status:   Open
 Bug Type: Filesystem function related
 Operating System: linux/win
 PHP Version:  4.4.1
 New Comment:

nope - 5.1.2.2 cvs - same story - feof() still ignores a zero file


Previous Comments:


[2005-11-30 18:42:43] [EMAIL PROTECTED]

No, try the 5.1 snapshot.



[2005-11-30 18:42:21] dsp at tdcspace dot dk

is there a cvs for 4.4.1



[2005-11-30 18:33:15] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip





[2005-11-30 18:30:52] dsp at tdcspace dot dk

Description:

feof() does not report eof on a zero (0) length file

following code (similar to the ex. in the php manual) does
act like a new record was read - allthouh the file IS at eof.

$handle = @fopen("xxx", "r");
while (!feof($handle)) {
   $buffer = fgets($handle, 4096);
   echo $buffer;
   }
fclose($handle);







-- 
Edit this bug report at http://bugs.php.net/?id=35495&edit=1


#35495 [Fbk->Opn]: feof() does not report EOF on a zero file

2005-11-30 Thread dsp at tdcspace dot dk
 ID:   35495
 User updated by:  dsp at tdcspace dot dk
 Reported By:  dsp at tdcspace dot dk
-Status:   Feedback
+Status:   Open
 Bug Type: Filesystem function related
 Operating System: linux/win
 PHP Version:  4.4.1
 New Comment:

is there a cvs for 4.4.1


Previous Comments:


[2005-11-30 18:33:15] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip





[2005-11-30 18:30:52] dsp at tdcspace dot dk

Description:

feof() does not report eof on a zero (0) length file

following code (similar to the ex. in the php manual) does
act like a new record was read - allthouh the file IS at eof.

$handle = @fopen("xxx", "r");
while (!feof($handle)) {
   $buffer = fgets($handle, 4096);
   echo $buffer;
   }
fclose($handle);







-- 
Edit this bug report at http://bugs.php.net/?id=35495&edit=1