php - Why doesn't lint tell me the line number and nature of the parse error? -
i'm calling php lint windows batch file, so:
@echo off %%f in (*.php) php -l %%f
when file contains syntax error, outputs errors parsing xxx.php
. there way tell me nature of error is, , line it's on? maybe switch?
if came here because of "errors parsing foo.php" without details , missed charles comment, might looking this:
php -d display_errors=1 -l foo.php
thanks charles!
example:
[somewhere]# php -l submit.php errors parsing submit.php [somewhere]# php -d display_errors=1 -l submit.php parse error: syntax error, unexpected t_variable in submit.php on line 226 errors parsing submit.php
Comments
Post a Comment