Public bug reported: Hello,
Using "PHP 5.3.6-13ubuntu3.3 with Suhosin-Patch (cli)" I noticed the following bug. Apparently the (integer) 0 equates to the same thing as (string) 'D' Example: ---------------------------------------------- <?php $test = 'D'; if ($test == 'D') echo 'true'; // Echos true $testZero = 0; if ($testZero == 'D') echo 'true'; //Also echos true ---------------------------------------------- Both equate to "true" but the 0 should not. Thanks, LaChild ** Affects: php5 (Ubuntu) Importance: Undecided Status: New ** Tags: php php5 -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in Ubuntu. https://bugs.launchpad.net/bugs/928550 Title: PHP Comparison Issues ... 0 equates to 'D' To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/928550/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs