Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32775 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35510 invoked by uid 1010); 15 Oct 2007 10:44:04 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 35495 invoked from network); 15 Oct 2007 10:44:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Oct 2007 10:44:04 -0000 Authentication-Results: pb1.pair.com header.from=jorton@redhat.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=jorton@redhat.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain redhat.com designates 66.187.233.31 as permitted sender) X-PHP-List-Original-Sender: jorton@redhat.com X-Host-Fingerprint: 66.187.233.31 mx1.redhat.com Linux 2.6 Received: from [66.187.233.31] ([66.187.233.31:58606] helo=mx1.redhat.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 78/69-02105-17443174 for ; Mon, 15 Oct 2007 06:44:02 -0400 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.1) with ESMTP id l9FAhvBB032471 for ; Mon, 15 Oct 2007 06:43:57 -0400 Received: from turnip.manyfish.co.uk (IDENT:U2FsdGVkX1+FfrBfAy6g7zVqXjv/KH0Rjoxu7wvxJX8@vpn-14-42.rdu.redhat.com [10.11.14.42]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l9FAhuSq026689 for ; Mon, 15 Oct 2007 06:43:56 -0400 Received: from jorton by turnip.manyfish.co.uk with local (Exim 4.66) (envelope-from ) id 1IhNQR-00036F-QO for internals@lists.php.net; Mon, 15 Oct 2007 11:43:55 +0100 Date: Mon, 15 Oct 2007 11:43:55 +0100 To: internals@lists.php.net Message-ID: <20071015104355.GA11745@redhat.com> Mail-Followup-To: internals@lists.php.net References: <64ED731E-CA44-498E-9AF9-C9B00037B863@omniti.com> <47131626.5020809@sektioneins.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <47131626.5020809@sektioneins.de> User-Agent: Mutt/1.5.14 (2007-02-12) Organization: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in UK and Wales under Company Registration No. 03798903 Directors: Michael Cunningham (USA), Brendan Lane (Ireland), Matt Parson (USA), Charlie Peters (USA) Subject: Re: [PHP-DEV] Large file support for PHP From: jorton@redhat.com (Joe Orton) 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