Bug #12243 Updated: Large numbers not behaving as doubles

From: Date: Thu, 19 Jul 2001 03:34:08 +0000
Subject: Bug #12243 Updated: Large numbers not behaving as doubles
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-60251@lists.php.net to get a copy of this message
ID: 12243 User updated by: matysekj@usms.org Reported By: matysekj@usms.org Status: Open Bug Type: Variables related Operating System: FreeBSD 4.1.1-STABLE PHP Version: 4.0.6 New Comment: I've verified that this behavior is relatively new. It does not happen in 4.03PL1, but does in 4.05 and 4.06. Previous Comments: ------------------------------------------------------------------------ [2001-07-18 23:13:02] matysekj@usms.org $testnumber = 5000000000; echo $testnumber; The result is 2147483647. The variable is of type integer, even though it was initialized with a double value. I first noticed this with PHP 4.05 and it still occurs with 4.05. I do not believe it behaved this way back when I had 4.03PL1 installed. My configure line is: './configure' '--with-gd=no' '--with-mysql=/usr/local' '--with-config-file-path=/usr/home/priraise/phpini' '--enable-debug=no' '--enable-track-vars=yes' '--enable-ftp=yes' '--enable-force-cgi-redirect=yes' '--with-openssl' '--enable-trans-sid' '--enable-xml' ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=12243&edit=1

« previous php.dev (#60251) next »