runkit_lint
(PECL runkit:0.7-0.9)
runkit_lint — Check the PHP syntax of the specified php code
Popis
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.
Note: Podpora pieskoviska (potrebná pre runkit_lint(), runkit_lint_file(), a triedu Runkit_Sandbox) je dostupná len v PHP 5.1, alebo špeciálne upravených verziách PHP 5.0 a vyžaduje, aby bola povolená bezpečnosť vlákien. Pozri súbor README zahrnutý v runkit balíku pre ďaľšie informácie.
Parametre
- code
-
PHP Code to be lint checked
Vrátené hodnoty
Vracia TRUE pri úspechu alebe FALSE pri chybe.