svn: /phpdoc/en/trunk/reference/filesystem/functions/ fseek.xml

From: Date: Fri, 04 Sep 2009 07:28:53 +0000
Subject: svn: /phpdoc/en/trunk/reference/filesystem/functions/ fseek.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-4827@lists.php.net to get a copy of this message
torben Fri, 04 Sep 2009 07:28:53 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=288029 Log: 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. Bug: http://bugs.php.net/47371 (Open) fseek: Description of negative offset use is not clear Changed paths: U phpdoc/en/trunk/reference/filesystem/functions/fseek.xml Modified: phpdoc/en/trunk/reference/filesystem/functions/fseek.xml =================================================================== --- phpdoc/en/trunk/reference/filesystem/functions/fseek.xml 2009-09-04 06:59:08 UTC (rev 288028) +++ phpdoc/en/trunk/reference/filesystem/functions/fseek.xml 2009-09-04 07:28:53 UTC (rev 288029) @@ -40,8 +40,10 @@ The offset. </para> <para> - To move to a position before the end-of-file, you need to pass a negative - value in <parameter>offset</parameter>. + To move to a position before the end-of-file, you need to pass + a negative value in <parameter>offset</parameter> and + set <parameter>whence</parameter> + to <constant>SEEK_END</constant>. </para> </listitem> </varlistentry>

« previous php.doc.cvs (#4827) next »