Jackson Miller wrote:
Why is it that when you forget a "}" the error says:
Unexpected $ on line [last line of file]

Why can't it just say:
Missing } on or before (best guess).

How could the parser possibly know that one was missing as it's going through the file? It just keeps a count and can only realize something is wrong when it gets to the end of the file and sees the count is off.


--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to