Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33070 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7472 invoked by uid 1010); 9 Nov 2007 20:54:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 7457 invoked from network); 9 Nov 2007 20:54:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Nov 2007 20:54:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:24431] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7C/8D-24268-129C4374 for ; Fri, 09 Nov 2007 15:54:58 -0500 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 9 Nov 2007 22:54:54 +0200 Received: from [192.168.16.91] ([192.168.16.91]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 9 Nov 2007 12:54:50 -0800 Message-ID: <4734C91B.4030506@zend.com> Date: Fri, 09 Nov 2007 12:54:51 -0800 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Wez Furlong CC: internals@lists.php.net References: <64ED731E-CA44-498E-9AF9-C9B00037B863@omniti.com> In-Reply-To: <64ED731E-CA44-498E-9AF9-C9B00037B863@omniti.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 Nov 2007 20:54:50.0802 (UTC) FILETIME=[C562A920:01C82312] Subject: Re: [PHP-DEV] Large file support for PHP From: stas@zend.com (Stanislav Malyshev) > 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. I wonder - if we enable this patch, and there's some library that PHP modules use, which is not compiled with 64-bit files support, will it work OK (including using PHP file handles, calling file functions, etc.)? I am worried about something like changing the structure of FILE* and then both modules using different settings would access it. So do you know how LF-enabled code interoperates with non-lf-enabled code? Also I'm not sure MAKE_DOUBLE_ZVAL_INCREF is necessary - as I see, it's used only in 2 places. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com