Document return on success change from 1 to true in 4.3.3, and see also fopen/fseek.

This documents bug #24162


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@132989 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2003-06-23 01:05:48 +00:00
parent af8ad65dd3
commit 45d077dbd7

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.14 -->
<refentry id="function.ftruncate">
<refnamediv>
@ -17,6 +17,17 @@
Takes the filepointer, <parameter>handle</parameter>, and truncates the file to
length, <parameter>size</parameter>. &return.success;
</para>
<note>
<para>
Prior to PHP 4.3.3, <function>ftruncate</function> returns an
<type>integer</type> value of 1 on success, instead of
<type>boolean</type> &true;.
</para>
</note>
<para>
See also <function>fopen</function> and
<function>fseek</function>.
</para>
</refsect1>
</refentry>