1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-23 23:32:18 +01:00

runkit7: fix XML to remove useless wrapping para tags via script

This commit is contained in:
Gina Peter Banyard
2026-01-25 15:08:42 +00:00
parent 0f2a5f5ddb
commit 3a826d03cc
18 changed files with 403 additions and 492 deletions

View File

@@ -1,196 +1,192 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<appendix xml:id="runkit7.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<appendix xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="runkit7.constants">
&reftitle.constants;
&extension.constants;
<para>
<variablelist>
<varlistentry xml:id="constant.runkit7-import-functions">
<term>
<constant>RUNKIT7_IMPORT_FUNCTIONS</constant>
(<type>int</type>)
</term>
<listitem>
<variablelist>
<varlistentry xml:id="constant.runkit7-import-functions">
<term>
<constant>RUNKIT7_IMPORT_FUNCTIONS</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
<function>runkit7_import</function> flag indicating
that normal functions should be imported from the
specified file.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-import-class-methods">
<term>
<constant>RUNKIT7_IMPORT_CLASS_METHODS</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
<function>runkit7_import</function> flag indicating
that normal functions should be imported from the
specified file.
<function>runkit7_import</function> flag indicating
that class methods should be imported from the
specified file.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-import-class-methods">
<term>
<constant>RUNKIT7_IMPORT_CLASS_METHODS</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
<function>runkit7_import</function> flag indicating
that class methods should be imported from the
specified file.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-import-class-consts">
<term>
<constant>RUNKIT7_IMPORT_CLASS_CONSTS</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
<function>runkit7_import</function> flag indicating
that class constants should be imported from the
specified file.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-import-class-props">
<term>
<constant>RUNKIT7_IMPORT_CLASS_PROPS</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
<function>runkit7_import</function> flag indicating
that class standard properties should be imported
from the specified file.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-import-class-static-props">
<term>
<constant>RUNKIT7_IMPORT_CLASS_STATIC_PROPS</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
<function>runkit7_import</function> flag indicating
that class static properties should be imported
from the specified file. Available since Runkit 1.0.1.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-import-classes">
<term>
<constant>RUNKIT7_IMPORT_CLASSES</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
<function>runkit7_import</function> flag representing
a bitwise OR of the <constant>RUNKIT7_IMPORT_CLASS_<replaceable>*</replaceable></constant>
constants.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-import-override">
<term>
<constant>RUNKIT7_IMPORT_OVERRIDE</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
<function>runkit7_import</function> flag indicating that
if any of the imported functions, methods, constants,
or properties already exist, they should be replaced with
the new definitions. If this flag is not set, then any
imported definitions which already exist will be discarded.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-acc-return-reference">
<term>
<constant>RUNKIT7_ACC_RETURN_REFERENCE</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Include this flag to make the function or method being created or redeclared return a reference.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-acc-public">
<term>
<constant>RUNKIT7_ACC_PUBLIC</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Flag for <function>runkit7_method_add</function> and <function>runkit7_method_redefine</function> to make the method public.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-acc-protected">
<term>
<constant>RUNKIT7_ACC_PROTECTED</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Flag for <function>runkit7_method_add</function> and <function>runkit7_method_redefine</function> to make the method protected.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-acc-private">
<term>
<constant>RUNKIT7_ACC_PRIVATE</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Flag for <function>runkit7_method_add</function> and <function>runkit7_method_redefine</function> to make the method private.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-acc-static">
<term>
<constant>RUNKIT7_ACC_STATIC</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Flag for <function>runkit7_method_add</function> and <function>runkit7_method_redefine</function> to make the method static.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-feature-manipulation">
<term>
<constant>RUNKIT7_FEATURE_MANIPULATION</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Equal to 1 if runtime manipulation is enabled, and 0 otherwise.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-feature-superglobals">
<term>
<constant>RUNKIT7_FEATURE_SUPERGLOBALS</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Equal to 1 if custom superglobals are enabled, and 0 otherwise.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-feature-sandbox">
<term>
<constant>RUNKIT7_FEATURE_SANDBOX</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Always 0, it's impractical to implement the sandbox feature in php 7.
</simpara>
</listitem>
</varlistentry>
</variablelist>
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-import-class-consts">
<term>
<constant>RUNKIT7_IMPORT_CLASS_CONSTS</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
<function>runkit7_import</function> flag indicating
that class constants should be imported from the
specified file.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-import-class-props">
<term>
<constant>RUNKIT7_IMPORT_CLASS_PROPS</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
<function>runkit7_import</function> flag indicating
that class standard properties should be imported
from the specified file.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-import-class-static-props">
<term>
<constant>RUNKIT7_IMPORT_CLASS_STATIC_PROPS</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
<function>runkit7_import</function> flag indicating
that class static properties should be imported
from the specified file. Available since Runkit 1.0.1.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-import-classes">
<term>
<constant>RUNKIT7_IMPORT_CLASSES</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
<function>runkit7_import</function> flag representing
a bitwise OR of the <constant>RUNKIT7_IMPORT_CLASS_<replaceable>*</replaceable></constant>
constants.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-import-override">
<term>
<constant>RUNKIT7_IMPORT_OVERRIDE</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
<function>runkit7_import</function> flag indicating that
if any of the imported functions, methods, constants,
or properties already exist, they should be replaced with
the new definitions. If this flag is not set, then any
imported definitions which already exist will be discarded.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-acc-return-reference">
<term>
<constant>RUNKIT7_ACC_RETURN_REFERENCE</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Include this flag to make the function or method being created or redeclared return a reference.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-acc-public">
<term>
<constant>RUNKIT7_ACC_PUBLIC</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Flag for <function>runkit7_method_add</function> and <function>runkit7_method_redefine</function> to make the method public.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-acc-protected">
<term>
<constant>RUNKIT7_ACC_PROTECTED</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Flag for <function>runkit7_method_add</function> and <function>runkit7_method_redefine</function> to make the method protected.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-acc-private">
<term>
<constant>RUNKIT7_ACC_PRIVATE</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Flag for <function>runkit7_method_add</function> and <function>runkit7_method_redefine</function> to make the method private.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-acc-static">
<term>
<constant>RUNKIT7_ACC_STATIC</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Flag for <function>runkit7_method_add</function> and <function>runkit7_method_redefine</function> to make the method static.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-feature-manipulation">
<term>
<constant>RUNKIT7_FEATURE_MANIPULATION</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Equal to 1 if runtime manipulation is enabled, and 0 otherwise.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-feature-superglobals">
<term>
<constant>RUNKIT7_FEATURE_SUPERGLOBALS</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Equal to 1 if custom superglobals are enabled, and 0 otherwise.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.runkit7-feature-sandbox">
<term>
<constant>RUNKIT7_FEATURE_SANDBOX</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Always 0, it's impractical to implement the sandbox feature in php 7.
</simpara>
</listitem>
</varlistentry>
</variablelist>
</appendix>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.runkit7-constant-add" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.runkit7-constant-add">
<refnamediv>
<refname>runkit7_constant_add</refname>
<refpurpose>
@@ -60,17 +59,14 @@
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>define</function></member>
<member><function>runkit7_constant_redefine</function></member>
<member><function>runkit7_constant_remove</function></member>
</simplelist>
</para>
<simplelist>
<member><function>define</function></member>
<member><function>runkit7_constant_redefine</function></member>
<member><function>runkit7_constant_remove</function></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.runkit7-constant-redefine" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.runkit7-constant-redefine">
<refnamediv>
<refname>runkit7_constant_redefine</refname>
<refpurpose>Redefine an already defined constant</refpurpose>
@@ -62,17 +61,14 @@
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>runkit7_constant_add</function></member>
<member><function>runkit7_constant_remove</function></member>
</simplelist>
</para>
<simplelist>
<member><function>runkit7_constant_add</function></member>
<member><function>runkit7_constant_remove</function></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.runkit7-constant-remove" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.runkit7-constant-remove">
<refnamediv>
<refname>runkit7_constant_remove</refname>
<refpurpose>
@@ -41,18 +40,15 @@
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>define</function></member>
<member><function>runkit7_constant_add</function></member>
<member><function>runkit7_constant_redefine</function></member>
</simplelist>
</para>
<simplelist>
<member><function>define</function></member>
<member><function>runkit7_constant_add</function></member>
<member><function>runkit7_constant_redefine</function></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.runkit7-function-add" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.runkit7-function-add">
<refnamediv>
<refname>runkit7_function_add</refname>
<refpurpose>
@@ -105,50 +104,45 @@
&reftitle.returnvalues;
<para>
&return.success;
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>A <function>runkit7_function_add</function> example</title>
<programlisting role="php">
<example>
<title>A <function>runkit7_function_add</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
runkit7_function_add('testme','$a,$b','echo "The value of a is $a\n"; echo "The value of b is $b\n";');
testme(1,2);
?>
]]>
</programlisting>
&example.outputs;
<screen>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
The value of a is 1
The value of b is 2
]]>
</screen>
</example>
</para>
</screen>
</example>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>create_function</function></member>
<member><function>runkit7_function_redefine</function></member>
<member><function>runkit7_function_copy</function></member>
<member><function>runkit7_function_rename</function></member>
<member><function>runkit7_function_remove</function></member>
<member><function>runkit7_method_add</function></member>
</simplelist>
</para>
<simplelist>
<member><function>create_function</function></member>
<member><function>runkit7_function_redefine</function></member>
<member><function>runkit7_function_copy</function></member>
<member><function>runkit7_function_rename</function></member>
<member><function>runkit7_function_remove</function></member>
<member><function>runkit7_method_add</function></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.runkit7-function-copy" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.runkit7-function-copy">
<refnamediv>
<refname>runkit7_function_copy</refname>
<refpurpose>
@@ -50,10 +49,9 @@
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>A <function>runkit7_function_copy</function> example</title>
<programlisting role="php">
<example>
<title>A <function>runkit7_function_copy</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
function original() {
@@ -64,32 +62,28 @@ original();
duplicate();
?>
]]>
</programlisting>
&example.outputs;
<screen>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
In a function
In a function
]]>
</screen>
</example>
</para>
</screen>
</example>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>runkit7_function_add</function></member>
<member><function>runkit7_function_redefine</function></member>
<member><function>runkit7_function_rename</function></member>
<member><function>runkit7_function_remove</function></member>
</simplelist>
</para>
<simplelist>
<member><function>runkit7_function_add</function></member>
<member><function>runkit7_function_redefine</function></member>
<member><function>runkit7_function_rename</function></member>
<member><function>runkit7_function_remove</function></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.runkit7-function-redefine" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.runkit7-function-redefine">
<refnamediv>
<refname>runkit7_function_redefine</refname>
<refpurpose>
@@ -113,10 +112,9 @@
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>A <function>runkit7_function_redefine</function> example</title>
<programlisting role="php">
<example>
<title>A <function>runkit7_function_redefine</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
function testme() {
@@ -127,33 +125,29 @@ runkit7_function_redefine('testme','','echo "New Testme Implementation\n";');
testme();
?>
]]>
</programlisting>
&example.outputs;
<screen>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
Original Testme Implementation
New Testme Implementation
]]>
</screen>
</example>
</para>
</screen>
</example>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>runkit7_function_add</function></member>
<member><function>runkit7_function_copy</function></member>
<member><function>runkit7_function_rename</function></member>
<member><function>runkit7_function_remove</function></member>
<member><function>runkit7_method_redefine</function></member>
</simplelist>
</para>
<simplelist>
<member><function>runkit7_function_add</function></member>
<member><function>runkit7_function_copy</function></member>
<member><function>runkit7_function_rename</function></member>
<member><function>runkit7_function_remove</function></member>
<member><function>runkit7_method_redefine</function></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.runkit7-function-remove" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.runkit7-function-remove">
<refnamediv>
<refname>runkit7_function_remove</refname>
<refpurpose>
@@ -43,19 +42,16 @@
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>runkit7_function_add</function></member>
<member><function>runkit7_function_copy</function></member>
<member><function>runkit7_function_redefine</function></member>
<member><function>runkit7_function_rename</function></member>
</simplelist>
</para>
<simplelist>
<member><function>runkit7_function_add</function></member>
<member><function>runkit7_function_copy</function></member>
<member><function>runkit7_function_redefine</function></member>
<member><function>runkit7_function_rename</function></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.runkit7-function-rename" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.runkit7-function-rename">
<refnamediv>
<refname>runkit7_function_rename</refname>
<refpurpose>
@@ -52,19 +51,16 @@
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>runkit7_function_add</function></member>
<member><function>runkit7_function_copy</function></member>
<member><function>runkit7_function_redefine</function></member>
<member><function>runkit7_function_remove</function></member>
</simplelist>
</para>
<simplelist>
<member><function>runkit7_function_add</function></member>
<member><function>runkit7_function_copy</function></member>
<member><function>runkit7_function_redefine</function></member>
<member><function>runkit7_function_remove</function></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.runkit7-method-add" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.runkit7-method-add">
<refnamediv>
<refname>runkit7_method_add</refname>
<refpurpose>Dynamically adds a new method to a given class</refpurpose>
@@ -100,7 +99,7 @@
<listitem>
<para>
The return type of the method.
</para>
</listitem>
</varlistentry>
@@ -125,10 +124,9 @@
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>runkit7_method_add</function> example</title>
<programlisting role="php">
<example>
<title><function>runkit7_method_add</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
class Example {
@@ -153,30 +151,26 @@ runkit7_method_add(
echo $e->add(12, 4);
?>
]]>
</programlisting>
&example.outputs;
<screen>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
16
]]>
</screen>
</example>
</para>
</screen>
</example>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>runkit7_method_copy</function></member>
<member><function>runkit7_method_redefine</function></member>
<member><function>runkit7_method_remove</function></member>
<member><function>runkit7_method_rename</function></member>
<member><function>runkit7_function_add</function></member>
</simplelist>
</para>
<simplelist>
<member><function>runkit7_method_copy</function></member>
<member><function>runkit7_method_redefine</function></member>
<member><function>runkit7_method_remove</function></member>
<member><function>runkit7_method_rename</function></member>
<member><function>runkit7_function_add</function></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.runkit7-method-copy" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.runkit7-method-copy">
<refnamediv>
<refname>runkit7_method_copy</refname>
<refpurpose>Copies a method from class to another</refpurpose>
@@ -60,16 +59,15 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>runkit7_method_copy</function> example</title>
<programlisting role="php">
<example>
<title><function>runkit7_method_copy</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
class Foo {
@@ -89,31 +87,27 @@ runkit7_method_copy('Bar', 'baz', 'Foo', 'example');
echo Bar::baz();
?>
]]>
</programlisting>
&example.outputs;
<screen>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
foo!
]]>
</screen>
</example>
</para>
</screen>
</example>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>runkit7_method_add</function></member>
<member><function>runkit7_method_redefine</function></member>
<member><function>runkit7_method_remove</function></member>
<member><function>runkit7_method_rename</function></member>
<member><function>runkit7_function_copy</function></member>
</simplelist>
</para>
<simplelist>
<member><function>runkit7_method_add</function></member>
<member><function>runkit7_method_redefine</function></member>
<member><function>runkit7_method_remove</function></member>
<member><function>runkit7_method_rename</function></member>
<member><function>runkit7_function_copy</function></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.runkit7-method-redefine" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.runkit7-method-redefine">
<refnamediv>
<refname>runkit7_method_redefine</refname>
<refpurpose>Dynamically changes the code of the given method</refpurpose>
@@ -124,10 +123,9 @@
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>runkit7_method_redefine</function> example</title>
<programlisting role="php">
<example>
<title><function>runkit7_method_redefine</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
class Example {
@@ -155,32 +153,28 @@ runkit7_method_redefine(
echo "After: " . $e->foo();
?>
]]>
</programlisting>
&example.outputs;
<screen>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
Before: foo!
After: bar!
]]>
</screen>
</example>
</para>
</screen>
</example>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>runkit7_method_add</function></member>
<member><function>runkit7_method_copy</function></member>
<member><function>runkit7_method_remove</function></member>
<member><function>runkit7_method_rename</function></member>
<member><function>runkit7_function_redefine</function></member>
</simplelist>
</para>
<simplelist>
<member><function>runkit7_method_add</function></member>
<member><function>runkit7_method_copy</function></member>
<member><function>runkit7_method_remove</function></member>
<member><function>runkit7_method_rename</function></member>
<member><function>runkit7_function_redefine</function></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.runkit7-method-remove" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.runkit7-method-remove">
<refnamediv>
<refname>runkit7_method_remove</refname>
<refpurpose>Dynamically removes the given method</refpurpose>
@@ -47,10 +46,9 @@
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>runkit7_method_remove</function> example</title>
<programlisting role="php">
<example>
<title><function>runkit7_method_remove</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
class Example {
@@ -73,32 +71,28 @@ echo implode(' ', get_class_methods('Example'));
?>
]]>
</programlisting>
&example.outputs;
<screen>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
bar
]]>
</screen>
</example>
</para>
</screen>
</example>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>runkit7_method_add</function></member>
<member><function>runkit7_method_copy</function></member>
<member><function>runkit7_method_redefine</function></member>
<member><function>runkit7_method_rename</function></member>
<member><function>runkit7_function_remove</function></member>
</simplelist>
</para>
<simplelist>
<member><function>runkit7_method_add</function></member>
<member><function>runkit7_method_copy</function></member>
<member><function>runkit7_method_redefine</function></member>
<member><function>runkit7_method_rename</function></member>
<member><function>runkit7_function_remove</function></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.runkit7-method-rename" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.runkit7-method-rename">
<refnamediv>
<refname>runkit7_method_rename</refname>
<refpurpose>Dynamically changes the name of the given method</refpurpose>
@@ -56,10 +55,9 @@
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>runkit7_method_rename</function> example</title>
<programlisting role="php">
<example>
<title><function>runkit7_method_rename</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
class Example {
@@ -79,30 +77,26 @@ runkit7_method_rename(
echo (new Example)->bar();
?>
]]>
</programlisting>
&example.outputs;
<screen>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
foo!
]]>
</screen>
</example>
</para>
</screen>
</example>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>runkit7_method_add</function></member>
<member><function>runkit7_method_copy</function></member>
<member><function>runkit7_method_redefine</function></member>
<member><function>runkit7_method_remove</function></member>
<member><function>runkit7_function_rename</function></member>
</simplelist>
</para>
<simplelist>
<member><function>runkit7_method_add</function></member>
<member><function>runkit7_method_copy</function></member>
<member><function>runkit7_method_redefine</function></member>
<member><function>runkit7_method_remove</function></member>
<member><function>runkit7_function_rename</function></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.runkit7-object-id" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.runkit7-object-id">
<refnamediv>
<refname>runkit7_object_id</refname>
<refpurpose>
@@ -33,7 +32,7 @@
<term><parameter>obj</parameter></term>
<listitem>
<para>
Any object.
Any object.
</para>
</listitem>
</varlistentry>
@@ -55,17 +54,14 @@
When an object is destroyed, its id may be reused for other objects.
</para>
</note>
</refsect1>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>spl_object_id</function></member>
</simplelist>
</para>
<simplelist>
<member><function>spl_object_id</function></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.runkit7-superglobals" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.runkit7-superglobals">
<refnamediv>
<refname>runkit7_superglobals</refname>
<refpurpose>
@@ -13,7 +12,7 @@
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>runkit7_superglobals</methodname>
<void />
<void/>
</methodsynopsis>
</refsect1>
@@ -32,15 +31,12 @@
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><link linkend="language.variables.scope">Variable Scope</link></member>
</simplelist>
</para>
<simplelist>
<member><link linkend="language.variables.scope">Variable Scope</link></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.runkit7-zval-inspect" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.runkit7-zval-inspect">
<refnamediv>
<refname>runkit7_zval_inspect</refname>
<refpurpose>Returns information about the passed in value with data types, reference counts, etc</refpurpose>
@@ -44,10 +43,9 @@
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>runkit7_zval_inspect</function> example</title>
<programlisting role="php">
<example>
<title><function>runkit7_zval_inspect</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
@@ -58,9 +56,9 @@ $var = 1;
var_dump(runkit7_zval_inspect($var));
?>
]]>
</programlisting>
&example.outputs;
<screen>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
array(4) {
["address"]=>
@@ -80,19 +78,16 @@ array(2) {
int(4)
}
]]>
</screen>
</example>
</para>
</screen>
</example>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><link linkend="language.references">References Explained</link></member>
<member><link xlink:href="&url.derick.references;">References Explained (by Derick Rethans)</link></member>
</simplelist>
</para>
<simplelist>
<member><link linkend="language.references">References Explained</link></member>
<member><link xlink:href="&url.derick.references;">References Explained (by Derick Rethans)</link></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<section xml:id="runkit7.configuration" xmlns="http://docbook.org/ns/docbook">
<section xmlns="http://docbook.org/ns/docbook" xml:id="runkit7.configuration">
&reftitle.runtime;
&extension.runtime;
<para>
@@ -21,13 +20,13 @@
<entry><link linkend="ini.runkit7.superglobal">runkit.superglobal</link></entry>
<entry>""</entry>
<entry><constant>INI_PERDIR</constant></entry>
<entry></entry>
<entry/>
</row>
<row>
<entry><link linkend="ini.runkit7.internal-override">runkit.internal_override</link></entry>
<entry>"0"</entry>
<entry><constant>INI_SYSTEM</constant></entry>
<entry></entry>
<entry/>
</row>
</tbody>
</tgroup>
@@ -37,23 +36,22 @@
&ini.descriptions.title;
<para>
<variablelist>
<varlistentry xml:id="ini.runkit7.superglobal">
<term>
<parameter>runkit.superglobal</parameter>
<type>string</type>
</term>
<listitem>
<simpara>
Comma-separated list of variable names to be treated as superglobals.
This value should be set in the systemwide php.ini file, but may work
in perdir configuration contexts depending on your SAPI.
</simpara>
<example>
<title>Custom Superglobals with runkit.superglobal=_FOO,_BAR in php.ini</title>
<programlisting role="php">
<![CDATA[
<variablelist>
<varlistentry xml:id="ini.runkit7.superglobal">
<term>
<parameter>runkit.superglobal</parameter>
<type>string</type>
</term>
<listitem>
<simpara>
Comma-separated list of variable names to be treated as superglobals.
This value should be set in the systemwide php.ini file, but may work
in perdir configuration contexts depending on your SAPI.
</simpara>
<example>
<title>Custom Superglobals with runkit.superglobal=_FOO,_BAR in php.ini</title>
<programlisting role="php">
<![CDATA[
<?php
function show_values() {
echo "Foo is $_FOO\n";
@@ -69,27 +67,25 @@ $_BAZ = 'baz';
show_values();
?>
]]>
</programlisting>
</example>
</listitem>
</varlistentry>
</programlisting>
</example>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.runkit7.internal-override">
<term>
<parameter>runkit.internal_override</parameter>
<type>bool</type>
</term>
<listitem>
<simpara>
Enables ability to modify/rename/remove internal functions.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.runkit7.internal-override">
<term>
<parameter>runkit.internal_override</parameter>
<type>bool</type>
</term>
<listitem>
<simpara>
Enables ability to modify/rename/remove internal functions.
</simpara>
</listitem>
</varlistentry>
</variablelist>
</para>
</variablelist>
</section>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml