Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25945 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16589 invoked by uid 1010); 5 Oct 2006 08:50:33 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 16574 invoked from network); 5 Oct 2006 08:50:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Oct 2006 08:50:33 -0000 Authentication-Results: pb1.pair.com header.from=php_lists@realplain.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php_lists@realplain.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain realplain.com from 209.142.136.132 cause and error) X-PHP-List-Original-Sender: php_lists@realplain.com X-Host-Fingerprint: 209.142.136.132 msa2-mx.centurytel.net Linux 2.4/2.6 Received: from [209.142.136.132] ([209.142.136.132:36316] helo=msa2-mx.centurytel.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 78/6E-12449-757C4254 for ; Thu, 05 Oct 2006 04:50:33 -0400 Received: from pc1 (72-161-142-50.dyn.centurytel.net [72.161.142.50]) by msa2-mx.centurytel.net (8.13.6/8.13.6) with SMTP id k958oR7F005656; Thu, 5 Oct 2006 03:50:27 -0500 Message-ID: <00e301c6e85b$4ed2e5b0$0201a8c0@pc1> To: , "Andrei Zmievski" References: <016201c6e0ae$a5011240$0201a8c0@pc1> Date: Thu, 5 Oct 2006 03:50:28 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Subject: Re: [PHP-DEV] [PATCH] Small typo in zend_u_strtol From: php_lists@realplain.com ("Matt W") 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