note 100452 deleted from function.fopen by cmb
| From: | cmb@php.net | Date: | Sun, 09 Feb 2020 08:09:27 +0000 |
| Subject: | note 100452 deleted from function.fopen by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-214035@lists.php.net to get a copy of this message | ||
Note Submitter: Brad G
----
While adding CFLAGS="-D_FILE_OFFSET_BITS=64" immediately before calling
"./configure" on the PHP source will enable support for using fopen() on large files
(greater than 2 GB), note that -- if such an installation of PHP is used in conjunction with Apache
HTTPD [2.x], Apache will become completely unresponsive even when not serving output from a PHP
application.
In order to gain large file support for non-web applications while maintaining the operability of
Apache, consider making two distinct PHP installations: one with the above CFLAGS specified during
configuration (for non-web uses), and the other without this flag (for use with Apache).