Bug #838 Updated: Parser error in nested if

From: Date: Fri, 09 Oct 1998 12:20:52 +0000
Subject: Bug #838 Updated: Parser error in nested if
Groups: php.dev 
Request: Send a blank email to php-dev+get-1753@lists.php.net to get a copy of this message
ID: 838 Updated by: zeev Reported By: agarcia@at4.net Status: Closed Bug Type: Parser error Assigned To: Comments: How is it clear? Because you've indented it that way? :) It's not clear at all, and in fact, the solution for the dangling else shift/reduce problem clearly states that the else belongs to the closest IF. PHP makes no distinction between if's with braces, no braces, or colons, and it doesn't pay attention to your indentation either. As soon as it sees the elseif, it expects it to match the inner IF sentence, and since it doesn't, it fails. Full Bug description available at: http://ca.php.net/bugs.php3?id=838 -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#1753) next »