Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32819 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44770 invoked by uid 1010); 16 Oct 2007 22:20:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 44755 invoked from network); 16 Oct 2007 22:20:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Oct 2007 22:20:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=wez@omniti.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=wez@omniti.com; sender-id=pass; domainkeys=good Received-SPF: pass (pb1.pair.com: domain omniti.com designates 66.225.209.50 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: wez@omniti.com X-Host-Fingerprint: 66.225.209.50 mail.omniti.com Linux 2.5 (sometimes 2.4) (4) Received: from [66.225.209.50] ([66.225.209.50:32818] helo=mail.omniti.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C5/A2-25624-33935174 for ; Tue, 16 Oct 2007 18:20:36 -0400 X-DKIM: Ecelerity dkim_sign implementing draft-ietf-dkim-base-00 DKIM-Signature: a=rsa-sha1; d=omniti.com; s=test; t=1192573232; c=simple/simple; q=dns; i=@omniti.com; h=From; b=TtUo9rwa0uArOt3vQJIZifBCM8r819jAK6o5Pmx63inxR29Dr3d5iKo7Nof1of5L crkmmBn/zl4Y8if8p1LILrio511jBh6/qyi61xrkUS96IHnFSYcNiaWZzuLnj6xK X-DomainKeys: Ecelerity dk_sign implementing draft-delany-domainkeys-base-01 DomainKey-Signature: q=dns; a=rsa-sha1; c=nofws; s=test; d=omniti.com; h=Authentication-Results:Received:In-Reply-To:References:Mime-Version:Content-Type:Message-Id:Cc:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=b5hgMDqbO0B+5WEbLKzu56YK+C1H4U3JfqF2Th6orUOIzC0u1hLEkDKc848BOZDB iIozjMvBpM5hG3DpwF8VJncpa/vQp7lQnuwKBX444OwDXMT7bqbzpiB/I7umzJ/r Authentication-Results: mail.omniti.com smtp.user=wez; auth=pass (LOGIN) Received: from [66.80.117.2] ([66.80.117.2:51354] helo=[10.79.0.104]) by mail.omniti.com (ecelerity 2.1.1.12 r(14453)) with ESMTPSA (cipher=AES128-SHA) id AD/35-25249-A2935174 for ; Tue, 16 Oct 2007 18:20:32 -0400 In-Reply-To: <4715382F.9040906@zend.com> References: <64ED731E-CA44-498E-9AF9-C9B00037B863@omniti.com> <4713A637.7070100@zend.com> <0FF7924D-52E6-4B22-B494-6E252477B389@omniti.com> <4715382F.9040906@zend.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: <5CAF7099-5A25-4595-98F3-5F27DEE84EEC@omniti.com> Cc: internals@lists.php.net Content-Transfer-Encoding: 7bit Date: Tue, 16 Oct 2007 18:20:25 -0400 To: Stanislav Malyshev X-Mailer: Apple Mail (2.752.3) Subject: Re: [PHP-DEV] Large file support for PHP From: wez@omniti.com (Wez Furlong) You might have a point there; I'd assumed that CFLAGS made it through to php-config, but it doesn't look like they do. It should be a simple matter to define them in php_config.h instead. --Wez. On Oct 16, 2007, at 6:16 PM, Stanislav Malyshev wrote: >> Yes, the patch does that; it turns on LFS in the headers, which >> promotes the off_t and size_t types that are used by streams to >> the 64-bit versions. This is the one liner in configure.in. >> The other larger part of the patch is to make PHP functions >> capable of returning and accepting numbers that are too big to fit >> into a long. > > I think it's better to do it in .h file and not CFLAGS (or both?) > so that if somebody includes PHP headers they would always get the > same result. This would prevent one from building incompatible module. > > Is it guaranteed that once you have this define you would always > get the same result on all builds (regardless of libc difference, > etc.)? > -- > Stanislav Malyshev, Zend Software Architect > stas@zend.com http://www.zend.com/ > (408)253-8829 MSN: stas@zend.com