#23246 [NEW]: == operator
| From: | tdietrich at sst dot com | Date: | Wed, 16 Apr 2003 19:51:54 +0000 |
| Subject: | #23246 [NEW]: == operator | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-37770@lists.php.net to get a copy of this message | ||
From: tdietrich at sst dot com
Operating system: Solaris
PHP version: 4.3.0
PHP Bug Type: Unknown/Other Function
Bug description: == operator
echo '8'. ((08 == 8) ? 'true':'false')."<br>\n";
echo '2'. ((02 == 2) ? 'true':'false')."<br>\n";
the first line returns false, but the 2nd line returns true.
This will return true for any number less than 8. possibly has to do with
the two byte conversion...
--
Edit bug report at http://bugs.php.net/?id=23246&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23246&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23246&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23246&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23246&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23246&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23246&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23246&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23246&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23246&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23246&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23246&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23246&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23246&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23246&r=gnused