Re: note 15755 added to function.intval

From: Date: Tue, 02 Oct 2001 00:39:17 +0000
Subject: Re: note 15755 added to function.intval
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-18449@lists.php.net to get a copy of this message
> intval() handles overflow differently depending on the type of the argument. > > intval('10000000000') = 2147483647 > intval(1e10) = 1410065408 > > intval(float) yields essentially non-defined result when the argument is beyond the range of int. Thats a bug. float -> int should use the maximum values in case of a out-of-range. I just submitted a patch, this is hopefully solved in 4.0.8. --Jeroen

« previous php.notes (#18449) next »