update : 2015.11.03
php.shukuma.com검색:
|
php_check_syntax(PHP 5 <= 5.0.4) php_check_syntax — Check the PHP syntax of (and execute) the specified file 설명
bool php_check_syntax
( string
$filename
[, string &$error_message
] )
Performs a syntax (lint) check on the specified
This is similar to using php -l from the commandline except that this
function will execute (but not output) the checked
For example, if a function is defined in
인수
반환값
Returns 변경점
예제
php -l somefile.php 위 예제의 출력 예시:
PHP Parse error: unexpected T_STRING in /tmp/somefile.php on line 81 |