Edit report at https://bugs.php.net/bug.php?id=54547&edit=1
ID: 54547 Updated by: hholz...@php.net Reported by: peter dot ritt at gmx dot net Summary: wrong equality of string numbers Status: Not a bug 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: the dot matt dot kantor at gmail dot com: i stand corrected indeed Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2012-04-13 10:15:52] yohg...@php.net Just a comment for users who would like to use large numbers. There are bcmath and gmp modules for large number arithmetic. ------------------------------------------------------------------------ [2012-04-13 07:08:00] paj...@php.net ok, enough arguing. There is no bug here. ------------------------------------------------------------------------ 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