Bug #10508: Wrong result when comparing two specific strings via "==".
| From: | swift at fanpro dot com | Date: | Thu, 26 Apr 2001 09:41:21 +0000 |
| Subject: | Bug #10508: Wrong result when comparing two specific strings via "==". | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-52480@lists.php.net to get a copy of this message | ||
From: swift@fanpro.com
Operating system: W2K
PHP version: 4.0.4pl1
PHP Bug Type: Scripting Engine problem
Bug description: Wrong result when comparing two specific strings via "==".
Hi!
This seems to be a bug:
<?php $TextColor="000000"; if ($TextColor == "0000D0") echo "Why?";
?>
This will produce the output "Why?" on my system ... but: why?
"000000" isn't equal "0000D0"!?
If I'm wrong, please tell me why ... thanks!!
... tobias wiersch
--
Edit Bug report at: http://bugs.php.net/?id=10508&edit=1