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
This commit is contained in:
Torben Wilson 2009-09-04 07:28:53 +00:00
parent 1d625605fe
commit c889127223

View file

@ -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>