Bug #61095 [Com]: PHP can't add hex numbers

From: Date: Fri, 05 Apr 2019 13:12:38 +0000
Subject: Bug #61095 [Com]: PHP can't add hex numbers
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-220332@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61095&edit=1

 ID:                 61095
 Comment by:         adityakin9 at gmail dot com
 Reported by:        tomek at przeslij dot pl
 Summary:            PHP can't add hex numbers
 Status:             Closed
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   Windows XP
 PHP Version:        5.3.10
 Assigned To:        colder
 Block user comment: N
 Private report:     N

 New Comment:

php -r 'echo (0x00+2);echo "\n";'
4
$ php -r 'echo (0x00+ 2);echo "\n";'
2
$ php -r 'echo (0x00 + 2);echo "\n";'
2
$ php -r 'echo (0x00 +2);echo "\n";'
4
$ php -v
https://bit.ly/2IbnZKk


Previous Comments:
------------------------------------------------------------------------
[2013-11-17 09:33:52] laruence@php.net

Automatic comment on behalf of colder
Revision: http://git.php.net/?p=php-src.git;a=commit;h=eefefddc0ee0dadc37b1bf05cada8685e546461e
Log: Fix #61095 (Lexing 0x0*+<NUM> incorrectly)

------------------------------------------------------------------------
[2012-10-08 06:05:58] user585859 at rediffmail dot com

php -r 'echo (0x00+2);echo "\n";'
4
$ php -r 'echo (0x00+ 2);echo "\n";'
2
$ php -r 'echo (0x00 + 2);echo "\n";'
2
$ php -r 'echo (0x00 +2);echo "\n";'
4
$ php -v
http://goo.gl/MGM87

------------------------------------------------------------------------
[2012-07-24 23:37:17] rasmus@php.net

Automatic comment on behalf of colder
Revision: http://git.php.net/?p=php-src.git;a=commit;h=eefefddc0ee0dadc37b1bf05cada8685e546461e
Log: Fix #61095 (Lexing 0x0*+<NUM> incorrectly)

------------------------------------------------------------------------
[2012-04-18 09:46:06] laruence@php.net

Automatic comment on behalf of colder
Revision: http://git.php.net/?p=php-src.git;a=commit;h=eefefddc0ee0dadc37b1bf05cada8685e546461e
Log: Fix #61095 (Lexing 0x0*+<NUM> incorrectly)

------------------------------------------------------------------------
[2012-02-24 02:34:52] colder@php.net

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.



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


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=61095


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


Thread (14 messages)

« previous php.bugs (#220332) next »