Bug #78886 [NEW]: Non-strict comparison '@foo' == 0 resolves to true

From: Date: Fri, 29 Nov 2019 12:58:52 +0000
Subject: Bug #78886 [NEW]: Non-strict comparison '@foo' == 0 resolves to true
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-223943@lists.php.net to get a copy of this message
From: frederik at sauerpower dot dk Operating system: macOS Mojave 10.14.6 PHP version: 7.3.12 Package: Strings related Bug Type: Bug Bug description:Non-strict comparison '@foo' == 0 resolves to true Description: ------------ Any string starting with @, like '@foo', compared to 0 (zero) resolves to true. Test script: --------------- var_dump('@foo' == 0); var_dump('@foo' === 0); Expected result: ---------------- false false Actual result: -------------- true false -- Edit bug report at https://bugs.php.net/bug.php?id=78886&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78886&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78886&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78886&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78886&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78886&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78886&r=support Expected behavior: https://bugs.php.net/fix.php?id=78886&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78886&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78886&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78886&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78886&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78886&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78886&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78886&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78886&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78886&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78886&r=mysqlcfg

« previous php.bugs (#223943) next »