added markup; example entities

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@186449 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Sean Coates 2005-05-16 03:47:13 +00:00
parent 6cd9c0c5c0
commit 554e4bfbec

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.8 $ -->
<!-- $Revision: 1.9 $ -->
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc. -->
<refentry id="runkit.sandbox">
<refnamediv>
@ -12,7 +12,8 @@
&reftitle.description;
<para>
Instantiating the Runkit_Sandbox class creates a new thread with its own scope
Instantiating the <classname>Runkit_Sandbox</classname>
class creates a new thread with its own scope
and program stack. Using a set of options passed to the constructor, this environment
may be restricted to a subset of what the primary interpreter can do and provide a
safer environment for executing user supplied code.
@ -39,10 +40,12 @@
<term><parameter>safe_mode</parameter></term>
<listitem>
<para>
If the outer script which is instantiating the Runkit_Sandbox class
If the outer script which is instantiating the
<classname>Runkit_Sandbox</classname> class
is configured with <literal>safe_mode = off</literal>, then safe_mode
may be turned on for the sandbox environment. This setting can not
be used to disable safe_mode when it's already enabled in the outer script.
be used to disable <literal>safe_mode</literal> when it's already
enabled in the outer script.
</para>
</listitem>
</varlistentry>
@ -51,7 +54,8 @@
<listitem>
<para>
<parameter>open_basedir</parameter> may be set to any path below the
current setting of open_basedir. If open_basedir is not set within the global scope,
current setting of <literal>open_basedir</literal>. If
<literal>open_basedir</literal> is not set within the global scope,
then it is assumed to be the root directory and may be set to any location.
</para>
</listitem>
@ -147,6 +151,7 @@ $sandbox->eval('var_dump(isset($foo));');
]]>
</programlisting>
</example>
&example.outputs;
<screen>
<![CDATA[
bar
@ -182,6 +187,7 @@ echo $sandbox->str_replace('a','f','abc');
]]>
</programlisting>
</example>
&example.outputs;
<screen>
<![CDATA[
fbc
@ -210,6 +216,7 @@ echo $sandbox->str_replace('a',$sandbox->foo,'a');
]]>
</programlisting>
</example>
&example.outputs;
<screen>
<![CDATA[
bar