From: blucasco at gmail dot com Operating system: FC3 PHP version: 5.0.3 PHP Bug Type: Output Control Bug description: Problem with negative exponent handling
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 bug report at http://bugs.php.net/?id=32320&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32320&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32320&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32320&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32320&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32320&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32320&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32320&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32320&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32320&r=support Expected behavior: http://bugs.php.net/fix.php?id=32320&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32320&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32320&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32320&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32320&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32320&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32320&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32320&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32320&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32320&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32320&r=mysqlcfg