PHP Velho Oeste 2024

runkit_lint

(PECL runkit >= 0.7.0)

runkit_lint Check the PHP syntax of the specified php code

Descrição

runkit_lint ( string $code ) : bool

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.

Nota: Suporte ao sandbox (requerido por runkit_lint(), runkit_lint_file() e a classe Runkit_Sandbox) somente está disponível a partir do PHP 5.1.0 ou versões especificamente alteradas do PHP 5.0, requerendo também thread safety ativo. Veja o README incluído no pacote do runkit para mais informações.

Parâmetros

code

PHP Code to be lint checked

Valor Retornado

Retorna TRUE em caso de sucesso ou FALSE em caso de falha.

Veja Também

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top