From c889127223a3eeafd318f56fc8d0a59369546683 Mon Sep 17 00:00:00 2001 From: Torben Wilson Date: Fri, 4 Sep 2009 07:28:53 +0000 Subject: [PATCH] Note that in order to use a negative offset to count from the end of the file, you must specify SEEK_END in the 'whence' parameter. Addresses bug #47371. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288029 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/filesystem/functions/fseek.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reference/filesystem/functions/fseek.xml b/reference/filesystem/functions/fseek.xml index 96942dea15..1a664b9abd 100644 --- a/reference/filesystem/functions/fseek.xml +++ b/reference/filesystem/functions/fseek.xml @@ -40,8 +40,10 @@ The offset. - To move to a position before the end-of-file, you need to pass a negative - value in offset. + To move to a position before the end-of-file, you need to pass + a negative value in offset and + set whence + to SEEK_END.