runkit_lint_file
(PECL runkit:0.7-0.9)
runkit_lint_file — Check the PHP syntax of the specified file
說明
bool runkit_lint_file
( string $filename
)
The runkit_lint_file() function performs a syntax (lint) check on the specified filename testing for scripting errors. This is similar to using php -l from the commandline.
Note: 對 Sandbox 的支援(是函式 runkit_lint()、runkit_lint_file() 和 Runkit_Sandbox 類別所必須的)僅在 PHP 5.1 中,或在加過特別更新套件的 PHP 5.0 中可用,並需要啟用線程安全。請閱讀 runkit 套件中的 README 文件以瞭解更多訊息。
參數
- filename
-
File containing PHP Code to be lint checked
Return值
如果成功則回傳 TRUE,失敗則回傳 FALSE。