Bug #14421: Numeric string comparsion fails
| From: | pauli dot ojanen at cencei dot fi | Date: | Tue, 11 Dec 2001 10:21:59 +0000 |
| Subject: | Bug #14421: Numeric string comparsion fails | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-73102@lists.php.net to get a copy of this message | ||
From: pauli.ojanen@cencei.fi
Operating system: Suse Linux, Apache web server
PHP version: 4.0.6
PHP Bug Type: Strings related
Bug description: Numeric string comparsion fails
<?php
// Values are NOT the same and it should print out
// "It worked" but it prints "PHP bugs."
if("2000000011211132516" == "2000000011211132521") {
print("PHP bugs.");
}
else {
print("It worked.");
}
?>
--
Edit bug report at: http://bugs.php.net/?id=14421&edit=1