From:             [EMAIL PROTECTED]
Operating system: Debian Linux
PHP version:      3.0.17
PHP Bug Type:     Misbehaving function
Bug description:  3.0.18 bug -  if ("INF" == "INF") {} does not equal true

I encountered a strange behaviour of comparing values.  I've only encountered it with 
a value of "INF". The following script should cause "INF" to be displayed in version 
3.0.18 on Linux

<?php
        $arr =array( 
        "TEST",
        "INF"
        );
        $cnt = sizeof($arr);
        for ($x=0; $x < $cnt; $x++) {
                $item = $arr[$x];
                if ("$item" == "$item") {
                } else {
                        print "$item<br>\n";
                }
        }
?>


-- 
PHP Development Mailing List <http://www.php.net/>
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