From: webmaster at demomusic dot nu
Operating system: WinXP, Unix
PHP version: 4.3.3
PHP Bug Type: Output Control
Bug description: All variables == 08 | 09 | 00
Description:
------------
Every variable, uninitiated or == "", returns true when compared with 00,
08 or 09.
Standard compilation + gd2 library. phpver 4.3.3, bug tested on both WinXP
using apache and Unix using apache. On WinXP: no changes to php.ini-dist
than different includepath.
Reproduce code:
---------------
if ($foo == 00) {echo "Allthough this should not show, it shows<br>";}
if ($foo == 08) {echo "Allthough this should not show, it shows<br>";}
if ($foo == 09) {echo "Allthough this should not show, it shows<br>";}
Actual result:
--------------
Allthough this should not show, it shows
Allthough this should not show, it shows
Allthough this should not show, it shows
--
Edit bug report at http://bugs.php.net/?id=25414&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25414&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25414&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25414&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25414&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25414&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25414&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25414&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25414&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25414&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25414&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25414&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25414&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25414&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25414&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25414&r=gnused