Re: Bug #1549: Improper interpretation of line

From: Date: Wed, 16 Jun 1999 18:05:29 +0000
Subject: Re: Bug #1549: Improper interpretation of line
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-7032@lists.php.net to get a copy of this message
This is valid. The example below will enter the 'if' if $rec is set to a non zero by the function. if($rec=mysql_db_query("db", $sql, $conn)){ } this is the same as: $rec=mysql_db_query("db", $sql, $conn) if($rec){ } Brian Moon ------------------------------------------------------------------------- Phorum Dev Team - http://www.phorum.org Making better forums with PHP ------------------------------------------------------------------------- ----- Original Message ----- From: <keithhasson@noland.com> To: <php-dev@lists.php.net> Sent: Wednesday, June 16, 1999 11:25 AM Subject: [PHP-DEV] Bug #1549: Improper interpretation of line > From: keithhasson@noland.com > Operating system: RedHat Linux 5.2 > PHP version: 3.0.9 > PHP Bug Type: Parser error > Bug description: Improper interpretation of line > > 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. > > > -- > PHP Development Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.dev (#7032) next »