|
Runkit_Sandbox_Parent
Runkit Anti-Sandbox Class
()
Instantiating the
Note:
Sandbox support (required for runkit_lint(), runkit_lint_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.
In order for any of the Example 2081. Working with variables in a sandbox<?php Accessing the Parent's Variables
Just as with sandbox variable access, a sandbox parent's
variables may be read from and written to as properties of
the
Unlike sandbox child variable access, the variable scope
is not limited to globals only. By setting the
Example 2082. Accessing parental variables<?php The above example will output: string(6) "Global" Calling the Parent's Functions
Just as with sandbox access, a sandbox may access its parents
functions providing that the proper settings have been enabled.
Enabling |
Change LanguageRunkit_Sandbox Runkit_Sandbox_Parent runkit_class_adopt runkit_class_emancipate runkit_constant_add runkit_constant_redefine runkit_constant_remove runkit_function_add runkit_function_copy runkit_function_redefine runkit_function_remove runkit_function_rename runkit_import runkit_lint_file runkit_lint runkit_method_add runkit_method_copy runkit_method_redefine runkit_method_remove runkit_method_rename runkit_return_value_used runkit_sandbox_output_handler runkit_superglobals |