runkit Функции
PHP Manual

runkit_lint

(PECL runkit >= 0.7.0)

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 command line except runkit_lint() accepts actual code rather than a filename.

Забележка: Поддръжката на Sandbox (необходима на runkit_lint(), runkit_lint_file() и класа Runkit_Sandbox) е достъпна само от PHP 5.1.0 или специално скърпени версии на PHP 5.0 и изисква безопасността на нишките да бъде включена. Вижте файла README, включен в пакета runkit за повече информация.

Параметри

code

PHP Code to be lint checked

Връщани стойности

Връща TRUE при успех или FALSE при неуспех.

Вж. също


runkit Функции
PHP Manual