[Bug 928550] [NEW] PHP Comparison Issues ... 0 equates to 'D'
LaChild
928550 at bugs.launchpad.net
Tue Feb 7 23:25:42 UTC 2012
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
More information about the Ubuntu-server-bugs
mailing list