#19008 [NEW]: == is wrong
| From: | six at t0x dot net | Date: | Wed, 21 Aug 2002 01:17:07 +0000 |
| Subject: | #19008 [NEW]: == is wrong | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-17378@lists.php.net to get a copy of this message | ||
From: six@t0x.net
Operating system: linux 2.4.18
PHP version: 4.2.2
PHP Bug Type: Variables related
Bug description: == is wrong
What do you think of the result of the little script below ??
shouldn't == return false on this one ?
------------------------------------
t0x:~# php -v
4.2.2
t0x:~# php
<?
$a=0;
if ($a=="*") echo "argh\n";
?>
argh
t0x:~#
-------------------------------------
--
Edit bug report at http://bugs.php.net/?id=19008&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19008&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19008&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19008&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19008&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19008&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19008&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19008&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19008&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19008&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19008&r=globals