Bug #54547 [Com]: wrong equality of string numbers

From: Date: Sun, 20 May 2012 13:41:35 +0000
Subject: Bug #54547 [Com]: wrong equality of string numbers
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-170608@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=54547&edit=1

 ID:                 54547
 Comment by:         kazuo at o-ishi dot jp
 Reported by:        peter dot ritt at gmx dot net
 Summary:            wrong equality of string numbers
 Status:             Closed
 Type:               Bug
 Package:            Unknown/Other Function
 Operating System:   linux
 PHP Version:        5.3.6
 Assigned To:        dmitry
 Block user comment: N
 Private report:     N

 New Comment:

This change has a compatibility problem.

After this change,

 "01234" == "1234"
    => TRUE (OK)

but 

 "09223372036854775808" == "9223372036854775808"
    => FALSE

I think this behavior is not reasonable.


Previous Comments:
------------------------------------------------------------------------
[2012-05-15 07:45:39] mike@php.net

Automatic comment on behalf of stas
Revision: http://git.php.net/?p=php-src.git;a=commit;h=9344bf193c6e35c8706923953f3e63bb01cc05ed
Log: fix bug #54547

------------------------------------------------------------------------
[2012-05-14 18:03:49] stas@php.net

Automatic comment on behalf of stas
Revision: http://git.php.net/?p=php-src.git;a=commit;h=47db8a9aa19f6e17a1018becf9978315c79a1cb0
Log: fix bug #54547

------------------------------------------------------------------------
[2012-05-13 21:51:39] stas@php.net

I've added Gustavo's patch to 5.4.

------------------------------------------------------------------------
[2012-05-13 21:48:43] stas@php.net

Automatic comment on behalf of stas
Revision: http://git.php.net/?p=php-src.git;a=commit;h=9344bf193c6e35c8706923953f3e63bb01cc05ed
Log: fix bug #54547

------------------------------------------------------------------------
[2012-04-18 08:23:12] hholzgra@php.net

the dot matt dot kantor at gmail dot com: i stand corrected indeed

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


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=54547


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


Thread (44 messages)

« previous php.bugs (#170608) next »