runkit_lint

(no version information, might be only in CVS)

runkit_lint --  Check the PHP syntax of the specified php code

説明

bool runkit_lint ( string code )

The runkit_lint() function performs a syntax (lint) check on the specified php code testing for scripting errors. This is similar to using php -l from the commandline except runkit_lint() accepts actual code rather than a filename.

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

パラメータ

code

PHP Code to be lint checked

戻り値

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

以下も参照ください

runkit_lint_file()