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>
¬e.clearstatcache;
-
+
¬e.no-remote;
<simpara>
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php