ID: 12453
Updated by: joey
Old Status: Open
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Win2k
PHP Version: 4.0.6
New Comment:

This is not a bug.
This is correct behavior.

For future reference, please try the following before reporting a bug:

For more info:

Previous Comments:

[2001-07-31 08:40:35] [EMAIL PROTECTED]

i thought that any integer =0 was also equal to any string...

for example (in your script):

if ($MyVar=="blahblahblahblah")
echo "yes";
echo "no";

will echo "yes"

I don't know if this is supposed to happen, but it does.
If you set the $MyVar=1, the script prints no.

Can anybody else verify if this is supposed to happen, or
if this is actually a bug?


[2001-07-28 22:54:40] [EMAIL PROTECTED]

If you compare the integer(0) to the string "null", PHP thinks they are the same.

Am I hopped up on goofballs, or whats up here?

        print("apparently $MyVar is equal to \"null\"");
        print("its not null, its $MyValue");


Edit this bug report at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to