PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<runkit_importrunkit_lint>
Last updated: Mon, 16 Jul 2012

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_importrunkit_lint>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST