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

 ID:                 54547
 Updated by:         s...@php.net
 Reported by:        peter dot ritt at gmx dot net
 Summary:            wrong equality of string numbers
-Status:             Not a bug
+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:

I've added Gustavo's patch to 5.4.


Previous Comments:
------------------------------------------------------------------------
[2012-05-13 21:48:43] s...@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] hholz...@php.net

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

------------------------------------------------------------------------
[2012-04-13 11:34:52] ahar...@php.net

Enough.

Gustavo has written a patch, the technical merits of which can be discussed 
somewhere with less noise. Additionally, it would be nice if the anti-PHP 
circlejerk took place somewhere other than PHP's bug tracker. Hacker News seems 
to enjoy it.

Closing the bug to public comments. Feel free to e-mail me about how I hate 
freedom, if it makes you feel better.

------------------------------------------------------------------------
[2012-04-13 11:30:30] the dot assimilator at gmail dot com

This isn't just a bug, it's a summary of PHP as a language: broken by design.

------------------------------------------------------------------------
[2012-04-13 10:53:24] ses...@php.net

This behaviour is for sure a bug. The == vs. === argument does not apply here.

PHP should not perform the type conversion for the comparison if the result of 
the 
type conversion does not fit into the actual type converted to.

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


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

Reply via email to