Re: [PATCH] Small typo in zend_u_strtol

From: Date: Thu, 05 Oct 2006 08:50:28 +0000
Subject: Re: [PATCH] Small typo in zend_u_strtol
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-25945@lists.php.net to get a copy of this message
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

« previous php.internals (#25945) next »