php -w causes a parse error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I wanted to run "php -w" on my include files on the live server to reduce
overhead.  But php -w causes parse errors in the include files.  Here's an
example of what happens:

tanner /php_files
% php -l misc.inc
No syntax errors detected in misc.inc
tanner /php_files
% php -w misc.inc > misc.stripped.inc
tanner /php_files
% php -l misc.stripped.inc
PHP Parse error:  parse error, unexpected '&', expecting ']' in
misc.stripped.inc on line 2

Parse error: parse error, unexpected '&', expecting ']' in misc.stripped.inc
on line 2
Errors parsing misc.stripped.inc


Of course i try to look at line 2 to see what the error is, but now the
whole file is on line 2, so there's no way to know what's breaking!

please let me know if you have any suggestions.

Thanks!

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux