Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46496 Return-Path: <0xcafefeed@gmail.com> Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11464 invoked from network); 22 Dec 2009 20:38:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Dec 2009 20:38:06 -0000 Authentication-Results: pb1.pair.com header.from=0xcafefeed@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=0xcafefeed@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.78.24 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: 0xcafefeed@gmail.com X-Host-Fingerprint: 74.125.78.24 ey-out-2122.google.com Received: from [74.125.78.24] ([74.125.78.24:58314] helo=ey-out-2122.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 37/12-00186-D2E213B4 for ; Tue, 22 Dec 2009 15:38:06 -0500 Received: by ey-out-2122.google.com with SMTP id 9so364275eyd.39 for ; Tue, 22 Dec 2009 12:38:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=SkgyFyp/xzXPVFiC4ljfgk/EIg7ompgsiXBBr5sf+yE=; b=Gdz0sdHK5CeCngPsq2YNJKLtKDunQLgtbfGOb/YPmVopRyZjdYL+oKitVajVo4002y M2JgvHNPsOjF1WxNFaDIODYMcW6gMPlwNQm6+xkBWX4l1UZNxr1fB0xq8GUp7xe8dFdw ZAH59rFDcWJfInsX1QKASaHh5QWPo5KI11TPo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=xYh5jjWn5+JcoVPDB+KDb19QjPfmUEV+OqXFi7cscgeaLW7TG8/fg9UQRBCcEE2RhL 8p8Nrn3WKvw2hmpnfBdK6CuNdccTZeCJoYKlgeLFdUeVoBk5drAbVCoFxIFbKjkukfUe wJkVWJDCyreJoVBEiLLW99EVHCnzr0Atng7jk= MIME-Version: 1.0 Received: by 10.216.88.65 with SMTP id z43mr3340834wee.5.1261514282829; Tue, 22 Dec 2009 12:38:02 -0800 (PST) In-Reply-To: <5e33430b0912220710r6effa11eq56e296e73041e8f1@mail.gmail.com> References: <5e33430b0912220710r6effa11eq56e296e73041e8f1@mail.gmail.com> Date: Tue, 22 Dec 2009 12:38:02 -0800 Message-ID: To: X Ryl Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [PATCH] Fix for 32 bits limit on file size (see bug 48886) From: 0xcafefeed@gmail.com (mm w) Thx, yep a long convertion, not a big deal, we don't work with 4.3GB files :-D, well minded people try to avoid that On Tue, Dec 22, 2009 at 7:10 AM, X Ryl wrote: > Hi, > > =C2=A0I'm not a C developer, so I can't really help with the attached pat= ch. > However, I've tried it with PHP 5.3.0 version I have and it does what it > claims, that is, it gives correct behaviour for the following functions: > filesize, fstat, stat when used on file > 4GB on a 32 bits machine. > Currently, php 5.x doesn't give the correct output for this code (on my > 32bits server): > echo filesize("path/to/4.3GBfile");=C2=A0 // expecting 4617089843, got 32= 2122547 > > With the patch applied, the good result is returned. > From the patch author, it improves the tests results. > From what I've understood, the patch switch to php's double type when the > size overflow the 32bits limit of int. > It doesn't seem to break any existing behaviour (I'm using this on my > multiple project since july, and no bad experience so far). > > The explaination by the patch author: http://bugs.php.net/bug.php?id=3D48= 886 > > > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >