diff --git a/language-snippets.ent b/language-snippets.ent index 91b52e9ddf..0756ef8e89 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -579,3 +579,9 @@ be used to manipulate the currently running (or chained) method. be used to manipulate the currently running (or chained) method. '> +Sandbox support (required for +runkit_lint, runkit_line_file, +and the Runkit_Sandbox class) is only available with PHP 5.1 or specially +patched versions of PHP 5.0 and requires that thread safety be enabled. +See the README file included in the runkit package for more information. +'> diff --git a/reference/runkit/functions/runkit-lint-file.xml b/reference/runkit/functions/runkit-lint-file.xml new file mode 100644 index 0000000000..cb6ed4da81 --- /dev/null +++ b/reference/runkit/functions/runkit-lint-file.xml @@ -0,0 +1,79 @@ + + + + + + runkit_lint_file + + Check the PHP syntax of the specified file + + + + &reftitle.description; + + boolrunkit_lint_file + stringfilename + + + 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. + + + ¬e.runkit.sandbox; + + + + &reftitle.parameters; + + + + filename + + + File containing PHP Code to be lint checked + + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.seealso; + + + runkit_lint + + + + + + + diff --git a/reference/runkit/functions/runkit-lint.xml b/reference/runkit/functions/runkit-lint.xml new file mode 100644 index 0000000000..30767fc936 --- /dev/null +++ b/reference/runkit/functions/runkit-lint.xml @@ -0,0 +1,81 @@ + + + + + + runkit_lint + + Check the PHP syntax of the specified php code + + + + &reftitle.description; + + boolrunkit_lint + stringcode + + + 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. + + + ¬e.runkit.sandbox; + + + + + &reftitle.parameters; + + + + code + + + PHP Code to be lint checked + + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.seealso; + + + runkit_lint_file + + + + + + + diff --git a/reference/runkit/functions/runkit-superglobals.xml b/reference/runkit/functions/runkit-superglobals.xml new file mode 100644 index 0000000000..ccf19a5283 --- /dev/null +++ b/reference/runkit/functions/runkit-superglobals.xml @@ -0,0 +1,57 @@ + + + + + + runkit_superglobals + + Return numericly indexed array of registered superglobals + + + + &reftitle.description; + + arrayrunkit_superglobals + + + + + + &reftitle.returnvalues; + + Returns a numericly indexed array of the currently registered superglobals. + i.e. _GET, _POST, _REQUEST, _COOKIE, _SESSION, _SERVER, _ENV, _FILES + + + + + &reftitle.seealso; + + + Variable Scope + + + + + + +