philip Sun Jun 22 21:05:48 2003 EDT Modified files: /phpdoc/en/reference/filesystem/functions ftruncate.xml Log: Document return on success change from 1 to true in 4.3.3, and see also fopen/fseek. This documents bug #24162 Index: phpdoc/en/reference/filesystem/functions/ftruncate.xml diff -u phpdoc/en/reference/filesystem/functions/ftruncate.xml:1.5 phpdoc/en/reference/filesystem/functions/ftruncate.xml:1.6 --- phpdoc/en/reference/filesystem/functions/ftruncate.xml:1.5 Sun Jan 26 21:50:41 2003 +++ phpdoc/en/reference/filesystem/functions/ftruncate.xml Sun Jun 22 21:05:48 2003 @@ -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> @@ -16,6 +16,17 @@ <para> 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>
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php