cvs: phpdoc /en/reference/filesystem/functions filesize.xml

From: Date: Tue, 03 Jun 2003 20:51:27 +0000
Subject: cvs: phpdoc /en/reference/filesystem/functions filesize.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969354236@lists.php.net to get a copy of this message
pollita Tue Jun 3 16:51:27 2003 EDT Modified files: /phpdoc/en/reference/filesystem/functions filesize.xml Log: Note about filesizes > 2^31 bytes Index: phpdoc/en/reference/filesystem/functions/filesize.xml diff -u phpdoc/en/reference/filesystem/functions/filesize.xml:1.3 phpdoc/en/reference/filesystem/functions/filesize.xml:1.4 --- phpdoc/en/reference/filesystem/functions/filesize.xml:1.3 Sat Feb 22 13:55:36 2003 +++ phpdoc/en/reference/filesystem/functions/filesize.xml Tue Jun 3 16:51:26 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 --> <refentry id="function.filesize"> <refnamediv> @@ -15,9 +15,17 @@ <para> Returns the size of the file in bytes, or &false; in case of an error. </para> + <note> + <simpara> + Because PHP's integer type is signed and many platforms use 32bit integers, + <function>filesize</function> may return unexpected results for files which + are larger than 2GB. For files between 2GB and 4GB in size this can usually + be overcome by using <literal>sprintf("%u", filesize($file))</literal>. + </simpara> + </note> &note.clearstatcache; - + &note.no-remote; <simpara>

« previous php.doc (#969354236) next »