> my take on it is that php reports the line it was on when it > encountered the error with isn't the same as where you've made your > mistake. That sometimes is the case, depending on the error/omission. However, in my case the error is reported on a line number -before- the actual line number I found it on. I understand that compile/parse-time errors do not provide a lot of accuracy... I'm just trying to understand a little better how it generally preprocesses the file.
Steven J. Walker Walker Effects www.walkereffects.com [EMAIL PROTECTED] On Tuesday, February 19, 2002, at 11:07 AM, Nick Wilson wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > * and then Steven Walker declared.... >> Does anyone know how line numbers are figured? I get errors like the >> following: >> >> Parse error: parse error in >> /home/sites/site104/users/walker/web/admin/_fileutils.php on line 74 >> >> Is PHP preprocessing the code to remove comments and white space? The >> larger my code file, the more inaccurate the parse error line number. >> In >> this case, the actual error was on line 83. > > Well I hope someone provides a more technically accurate answer than > mine :-) but my take on it is that php reports the line it was on when > it encountered the error with isn't the same as where you've made your > mistake. > - -- > - ----------------------------------------------------------- > www.explodingnet.com | Projects, Forums and > + Articles for website owners > - -- Nick Wilson -- | and designers. > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > > iD8DBQE8cqKJHpvrrTa6L5oRArJ8AJ4jXm+TYxKbXhqhtAgmgR14wycojACgh4zX > vSFDxyu6sWvE7G14Jp91MZg= > =P2dl > -----END PGP SIGNATURE----- > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >