Re: [PHP4BETA] Comparisons screwed up

From: Date: Mon, 03 Jan 2000 05:30:37 +0000
Subject: Re: [PHP4BETA] Comparisons screwed up
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-8822@lists.php.net to get a copy of this message
I just commited a patch to fix this. The error was due to the introduction of the new NULL type. BTW, you should be using quotation's around "bad" and "good". Andi At 05:42 AM 1/3/00 +0100, Sascha Schumann wrote:
    $action must not be initialized. The following script prints
    bad twice.
<? if($action == "foo")
        echo bad;
else
        echo good;
echo "\n"; switch($action) {
        case "foo":
                echo bad;
                break;
        default:
                echo good;
} echo "\n"; --
          Regards,
                            Sascha Schumann
                                 Consultant
-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net For additional commands, e-mail: php4beta-help@lists.php.net To contact the list administrators, e-mail: php4beta-admin@lists.php.net
--- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.version4 (#8822) next »