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

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_filerunkit_method_add>
 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