Bug #61561 [Opn]: 0=='0000-00-00' is true

From: Date: Fri, 30 Mar 2012 10:00:36 +0000
Subject: Bug #61561 [Opn]: 0=='0000-00-00' is true
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-169007@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61561&edit=1 ID: 61561 User updated by: sokkis at gmail dot com Reported by: sokkis at gmail dot com Summary: 0=='0000-00-00' is true Status: Open Type: Bug Package: *General Issues Operating System: Gentoo PHP Version: 5.3.10 Block user comment: N Private report: N New Comment: I wrote some mistake. '0000-00-00' is equal with 0. I think is false, because i have two "-" in the string. Previous Comments: ------------------------------------------------------------------------ [2012-03-30 09:58:39] sokkis at gmail dot com Description: ------------ '0000-00-00' is equal with '000-00-00'. I think is false, because i have two "-" in the string. Test script: --------------- <?php echo 0=='0000-00-00'; ?> Expected result: ---------------- 0 Actual result: -------------- 1 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61561&edit=1

« previous php.bugs (#169007) next »