Re: Large file support for PHP
| From: | Stefan Esser | Date: | Mon, 15 Oct 2007 07:26:30 +0000 |
| Subject: | Re: Large file support for PHP | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32770@lists.php.net to get a copy of this message | ||
Hi,
please keep in mind that compiling PHP with large file support breaks
binary compatibility...
One of the globals contain a "stat" struct that has different size for
LFS or no LFS.
Stefan Esser
Wez Furlong schrieb:
> This bug has been open for a while:
> http://bugs.php.net/bug.php?id=27792
>
> Having run into this issue recently, here's a patch (hopefully
> attached, mail.app and list filters willing) against PHP 5.3 to
> address it.
> This patch will promote to double the file sizes that overflow
> LONG_MAX, which works transparently for my script.
> Note that this only touches the obvious functions in the core; there
> may be other extensions that need to behave similarly.
>
> The defines that I jam into CFLAGS are known to work in our other
> projects on Linux, Solaris, FreeBSD and OSX. The other (weirder)
> platforms might need some other adjustments to work correctly.
>
> --Wez.
>
--
Stefan Esser SektionEins GmbH
Tel. xxxxxxxxxxxxxxx Ober Buschweg 9a
50999 Köln
stefan.esser@sektioneins.de www.sektioneins.de
SektionEins GmbH, Standort Köln
Firmensitz: Ober Buschweg 9a, 50999 Köln
Registergericht: Amtsgericht Köln, HRB 59920
Geschäftsführer: Johann-Peter Hartmann