Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25952 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39765 invoked by uid 1010); 5 Oct 2006 16:28:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 39748 invoked from network); 5 Oct 2006 16:28:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Oct 2006 16:28:51 -0000 Authentication-Results: pb1.pair.com header.from=andrei@gravitonic.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=andrei@gravitonic.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain gravitonic.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: andrei@gravitonic.com X-Host-Fingerprint: 204.11.219.139 lerdorf.com Linux 2.5 (sometimes 2.4) (4) Received: from [204.11.219.139] ([204.11.219.139:39467] helo=lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D3/2F-48579-FB235254 for ; Thu, 05 Oct 2006 12:28:48 -0400 Received: from [66.228.175.145] (borndress-lm.corp.yahoo.com [66.228.175.145]) (authenticated bits=0) by lerdorf.com (8.13.8/8.13.8/Debian-2) with ESMTP id k95GSiIQ015491; Thu, 5 Oct 2006 09:28:44 -0700 In-Reply-To: <00e301c6e85b$4ed2e5b0$0201a8c0@pc1> References: <016201c6e0ae$a5011240$0201a8c0@pc1> <00e301c6e85b$4ed2e5b0$0201a8c0@pc1> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-ID: <754cd73041a5eb071a86d6ae0e84eb9a@gravitonic.com> Content-Transfer-Encoding: 7bit Cc: Date: Thu, 5 Oct 2006 09:28:01 -0700 To: "Matt W" X-Mailer: Apple Mail (2.624) Subject: Re: [PHP-DEV] [PATCH] Small typo in zend_u_strtol From: andrei@gravitonic.com (Andrei Zmievski) Are you sure this is correct? I copied the source from BSD strtol implementation. http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/stdlib/strtol.c? rev=1.19&content-type=text/x-cvsweb-markup -Andrei On Oct 5, 2006, at 1:50 AM, Matt W wrote: > Hi, > > Was this missed? I'm sure you want to fix it. :-) Maybe should've put > "bug" instead of "typo" in the subject... > > Just also sending to you Andrei since it's Unicode related. > > Patch was an attachment: http://news.php.net/php.internals/25820 > > > ----- Original Message ----- > From: "Matt W" > Sent: Monday, September 25, 2006 > > >> Hi, >> >> Noticed this a couple months ago and never sent this simple thing. :-) >> ERANGE is being triggered too soon because of the wrong variable, >> which >> causes the following (in Unicode mode, of course) on 32-bit: >> >> (int) '2147483640' // int(2147483647) >> '2147483640' + 0 // float(2147483640) >> >> Instead of the expected int(2147483640) in both cases. >> >> >> Matt