Re: Large file support for PHP

From: Date: Mon, 15 Oct 2007 10:43:55 +0000
Subject: Re: Large file support for PHP
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-32775@lists.php.net to get a copy of this message
On Mon, Oct 15, 2007 at 09:26:30AM +0200, Stefan Esser wrote: > 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. More harmfully, it also changes the ABI of any library/application linked against PHP where that ABI uses off_t. So PHP would see all off_t's in the libraries API as 64-bit, whereas they were built as 32-bit. This breaks structure offsets etc very badly. The way this is done for e.g APR avoids the issue; using only -D_LARGEFILE64_SOURCE, off64_t in place of off_t, and fstat64, open64/O_LARGEFILE, etc. joe

« previous php.internals (#32775) next »