runkit_lint_file

(no version information, might be only in CVS)

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.

注意: サンドボックスのサポート (runkit_lint(), runkit_lint_file(), およびRunkit_Sandboxクラスで使用)は、PHP 5.1以降または特別なパッチを適用した PHP 5.0でのみ利用可能であり、スレッドセーフを有効にしておく必要があります。 詳細については、runkitパッケージに含まれるREADMEファイルを参照してください。

パラメータ

filename

File containing PHP Code to be lint checked

戻り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

以下も参照ください

runkit_lint()