PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

runkit_method_add> <runkit_lint_file
Last updated: Fri, 10 Oct 2008

view this page in

runkit_lint

(PECL runkit:0.7-0.9)

runkit_lint 指定した PHP コードの文法をチェックする

説明

bool runkit_lint ( string $code )

runkit_lint() 関数は、指定した PHP コードの 文法チェック(lint)を行い、スクリプトのエラーをチェックします。 これは、コマンドラインから php -l を実行するのと同じですが、 runkit_lint() はファイル名ではなくコードそのものを 受け付けます。

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

パラメータ

code

チェック対象の PHP コード。

返り値

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



add a note add a note User Contributed Notes
runkit_lint
There are no user contributed notes for this page.

runkit_method_add> <runkit_lint_file
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites