ID:               32320
 Updated by:       [EMAIL PROTECTED]
 Reported By:      blucasco at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Output Control
 Operating System: FC3
 PHP Version:      5.0.3
 New Comment:

Can you explain why I get exactly same results with both PHP 4 and 5 ?



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

[2005-03-15 19:08:37] blucasco at gmail dot com

Description:
------------
PHP 5.03 appears to handle math equations with negative exponents
differently than PHP 4.3.x.  I am trying to use the following example
in a larger script, but the primary difference is included below. 

Reproduce code:
---------------
PHP 4.3:
<? echo (-4738698913^43814); ?>
outputs:
-443704711

PHP 5.03:
<? echo (-4738698913^43814); ?>
outputs:
-2147439834

Expected result:
----------------
I believe 5.03 should output what 4.3 does, but this is an
extraordinarily large number so I can't say for certain.  

PHP 4.3:
<? echo (-4738698913^43814); ?>
outputs:
-443704711

Actual result:
--------------
PHP 5.03:
<? echo (-4738698913^43814); ?>
outputs:
-2147439834


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


-- 
Edit this bug report at http://bugs.php.net/?id=32320&edit=1

Reply via email to