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

search for in the

runkit_lint> <runkit_import
[edit] Last updated: Fri, 25 May 2012

view this page in

runkit_lint_file

(PECL runkit >= 0.7.0)

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: 沙箱支持(是 runkit_lint()runkit_lint_file() 函数,与 Runkit_Sandbox 类所必需)仅可用于 PHP 5.1.0 或 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 runkit_lint_file
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites