Bug #62253 [Com]: Number check bug

From: Date: Fri, 08 Jun 2012 13:28:13 +0000
Subject: Bug #62253 [Com]: Number check bug
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-171144@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62253&edit=1 ID: 62253 Comment by: Sjon at hortensius dot net Reported by: rophp at live dot it Summary: Number check bug Status: Open Type: Bug Package: *Math Functions Operating System: All PHP Version: Irrilevante Block user comment: N Private report: N New Comment: You should have a look at bug number #43304 Previous Comments: ------------------------------------------------------------------------ [2012-06-07 17:57:56] rophp at live dot it Description: ------------ Hello, when i go to check if the 2 vars are equals with this return 'equal' also if the end number is different. There is a limit? Test script: --------------- $record['xod']="727202440420867488"; $cookiecodiceconnessione="727202440420867484"; if ($record['xod']==$cookiecodiceconnessione) { echo 'equal'; }else{ echo 'not equal'; } Expected result: ---------------- not equal Actual result: -------------- equal ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62253&edit=1

« previous php.bugs (#171144) next »