Bug #62676 [NEW]: Hexadecimal addition not working with spaces
| From: | heiccih at gmail dot com | Date: | Fri, 27 Jul 2012 11:35:28 +0000 |
| Subject: | Bug #62676 [NEW]: Hexadecimal addition not working with spaces | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-172271@lists.php.net to get a copy of this message | ||
From: heiccih at gmail dot com
Operating system: Ubuntu 12.04
PHP version: 5.3.15
Package: Math related
Bug Type: Bug
Bug description:Hexadecimal addition not working with spaces
Description:
------------
With spaces the hexadecimal number add does not print the same result than
with no spaces in the script
Test script:
---------------
<?php
echo 0x00+0x02;
echo "\n";
echo 0x00 + 0x02;
?>
Expected result:
----------------
The following output:
2
2
Actual result:
--------------
The following output:
4
2
--
Edit bug report at https://bugs.php.net/bug.php?id=62676&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62676&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62676&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62676&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=62676&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62676&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=62676&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=62676&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=62676&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=62676&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=62676&r=support
Expected behavior: https://bugs.php.net/fix.php?id=62676&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=62676&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=62676&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=62676&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62676&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62676&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=62676&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=62676&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=62676&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=62676&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=62676&r=mysqlcfg