Bug #54547 [Com]: wrong equality of string numbers
| From: | Jeff at bobmail dot info | Date: | Thu, 12 Apr 2012 13:31:43 +0000 |
| Subject: | Bug #54547 [Com]: wrong equality of string numbers | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-169475@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: Jeff at bobmail dot info
Reported by: peter dot ritt at gmx dot net
Summary: wrong equality of string numbers
Status: Verified
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'm confused as to why there is even a conversation around "should we fix this".
The data objects are strings. Sure, PHP is "loosely typed" but shouldn't it do the
comparison you tell it to do first before attempting anything else?
I agree with the previous suggestion: make it a real string comparison and drop the type casting.
Previous Comments:
------------------------------------------------------------------------
[2012-04-12 06:39:31] pajoye@php.net
@a at hotmail dot com
This is not a support channel, if you need further support for the base ideas
about the loosely type nature of PHP, please ask them on one the numerous
channels.
------------------------------------------------------------------------
[2012-04-12 06:39:30] pajoye@php.net
@a at hotmail dot com
This is not a support channel, if you need further support for the base ideas
about the loosely type nature of PHP, please ask them on one the numerous
channels.
------------------------------------------------------------------------
[2012-04-12 06:39:30] pajoye@php.net
@a at hotmail dot com
This is not a support channel, if you need further support for the base ideas
about the loosely type nature of PHP, please ask them on one the numerous
channels.
------------------------------------------------------------------------
[2012-04-12 05:42:53] a at hotmail dot com
@pajoye@php.net
How about *you* staying polite with your users by actually fixing your bugs? Can you imagine how
much time is wasted worldwide as a consequence of your shortsighted "design" decisions?
------------------------------------------------------------------------
[2012-04-11 13:36:46] pajoye@php.net
@nik at naturalnet dot de
Please stay polite with other developers.
Please keep in mind that PHP is loosely typed, this is a root principle of PHP.
------------------------------------------------------------------------
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