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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php