Re: Bug #1549: Improper interpretation of line

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Bug #1549: Improper interpretation of line
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-7030@lists.php.net to get a copy of this message
> I keyed this line incorrectly, but it didn't report it as a > syntax error, instead, it set the value of $TOA to $var! > > $var="â"; > if ($TOA=="S" || $TOA=="E" || $TOA=$var): > > Notice: I missed an equal sign on the last comparison... > But it should have reported it as syntax error. Why? It is perfectly valid to make assignments there. I do it all the time. -Rasmus

« previous php.dev (#7030) next »