ID: 12243
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Variables related
Operating System: FreeBSD 4.1.1-STABLE
PHP Version: 4.0.6
New Comment:

1) longlong != double
2) the scale is HW-dependant, i. e. you need a 64-bit HW to get native support for 
64-bit numbers. that's how it's always been in PHP. there was no change WIRT this.

5,000,000,000 is clearly more than your HW can take, so it's clipped to the closest 
possible value.

Previous Comments:
------------------------------------------------------------------------

[2001-07-18 23:34:07] [EMAIL PROTECTED]

I've verified that this behavior is relatively new. It does not happen in 4.03PL1, but 
does in 4.05 and 4.06.

------------------------------------------------------------------------

[2001-07-18 23:13:02] [EMAIL PROTECTED]

$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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to