note 37791 deleted from function.fopen by cmb
| From: | cmb@php.net | Date: | Sun, 09 Feb 2020 08:09:46 +0000 |
| Subject: | note 37791 deleted from function.fopen by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-214036@lists.php.net to get a copy of this message | ||
Note Submitter: sergiopaternoster at tiscali dot it
----
If you want to open large files (more than 2GB) that's what I did and it works: you should
recompile your php with the CFLAGS="-D_FILE_OFFSET_BITS=64" ./configure etc... This tells
to your compiler (I tested only gcc on PHP-4.3.4 binary on Linux and Solaris) to make the PHP parser
binary large file aware. This way fopen() will not give you the "Value too large for defined
data type" error message.
God bless PHP
ciao
Sergio Paternoster