ID: 14421
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Strings related
Operating System: Suse Linux, Apache web server
PHP Version: 4.0.6
New Comment:

"2000000011211132516" is converted to a number, and so is "2000000011211132521". PHP 
can't handle numbers that large and therefor may work incorrect.
Use === to avoid that conversion.

Previous Comments:
------------------------------------------------------------------------

[2001-12-11 05:21:58] [EMAIL PROTECTED]

<?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 this bug report at http://bugs.php.net/?id=14421&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to