#25414 [Com]: All variables == 08 | 09 | 00
ID: 25414 Comment by: koi at casual dot se Reported By: webmaster at demomusic dot nu Status: Bogus Bug Type: Output Control Operating System: WinXP, Unix PHP Version: 4.3.3 New Comment: indeed Previous Comments: [2003-09-07 11:33:15] patrik at lepatrik dot se rtfm [2003-09-07 11:30:34] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php octal numbers, manual... figure it out. [2003-09-07 11:27:11] webmaster at demomusic dot nu 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";} if ($foo == 08) {echo "Allthough this should not show, it shows";} if ($foo == 09) {echo "Allthough this should not show, it shows";} Actual result: -- Allthough this should not show, it shows Allthough this should not show, it shows Allthough this should not show, it shows -- Edit this bug report at http://bugs.php.net/?id=25414&edit=1
#25414 [Com]: All variables == 08 | 09 | 00
ID: 25414 Comment by: patrik at lepatrik dot se Reported By: webmaster at demomusic dot nu Status: Bogus Bug Type: Output Control Operating System: WinXP, Unix PHP Version: 4.3.3 New Comment: rtfm Previous Comments: [2003-09-07 11:30:34] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php octal numbers, manual... figure it out. [2003-09-07 11:27:11] webmaster at demomusic dot nu 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";} if ($foo == 08) {echo "Allthough this should not show, it shows";} if ($foo == 09) {echo "Allthough this should not show, it shows";} Actual result: -- Allthough this should not show, it shows Allthough this should not show, it shows Allthough this should not show, it shows -- Edit this bug report at http://bugs.php.net/?id=25414&edit=1