runkit_lint_file

(PECL)

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


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