Cause of:`T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR'

From: Date: Sat, 01 Dec 2001 23:12:04 +0000
Subject: Cause of:`T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR'
Groups: php.general 
Request: Send a blank email to php-general+get-76327@lists.php.net to get a copy of this message
Hello all, I have ran across this error a number of times, and for those of you who are or will pulling out your hair, read on. When you get a: Parse error: parse error, expecting T_OLD_FUNCTION' or T_FUNCTION' or T_VAR' or '}'' in your_script.php on line 2149 Check to see if you have all of you { and } intact. The error could be thousands of lines away, but the error message may point to the end of your file. I notice this behavior when I am working on class definitions and forget to open close a block (switch, for, while) in a method in the class somewhere. Hope it helps someone. -Jason Garber IonZoft.com

« previous php.general (#76327) next »