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

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

This commit is contained in:
Gina Peter Banyard
2026-01-25 15:52:36 +00:00
parent 72f847e072
commit 27cb550c69
3 changed files with 30 additions and 42 deletions

View File

@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.scoutapm-get-calls" 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.scoutapm-get-calls">
<refnamediv>
<refname>scoutapm_get_calls</refname>
<refpurpose>Returns a list of instrumented calls that have occurred</refpurpose>
@@ -11,7 +10,7 @@
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>scoutapm_get_calls</methodname>
<void />
<void/>
</methodsynopsis>
<para>Returns a list of any instrumented function calls since <function>scoutapm_get_calls</function> was last called. The list is cleared each time the function is called.</para>
@@ -32,9 +31,8 @@
<refsect1 role="examples">
&reftitle.examples;
<para>
<example><title>Fetch instrumented calls</title>
<programlisting role="php">
<example><title>Fetch instrumented calls</title>
<programlisting role="php">
<![CDATA[
<?php
@@ -44,10 +42,10 @@ file_get_contents('b.txt');
print_r(scoutapm_get_calls());
?>
]]>
</programlisting>
&example.outputs.similar;
<screen>
<![CDATA[
</programlisting>
&example.outputs.similar;
<screen>
<![CDATA[
Array
(
[0] => Array
@@ -78,14 +76,12 @@ Array
)
]]>
</screen>
</example>
</para>
</screen>
</example>
</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.scoutapm-list-instrumented-functions" 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.scoutapm-list-instrumented-functions">
<refnamediv>
<refname>scoutapm_list_instrumented_functions</refname>
<refpurpose>List functions scoutapm will instrument.</refpurpose>
@@ -11,7 +10,7 @@
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>scoutapm_list_instrumented_functions</methodname>
<void />
<void/>
</methodsynopsis>
<para>Returns a list of the functions the extension will instrument.</para>
@@ -33,18 +32,17 @@
<refsect1 role="examples">
&reftitle.examples;
<para>
<example><title>Fetch the list of functions scoutapm will instrument</title>
<programlisting role="php">
<![CDATA[
<example><title>Fetch the list of functions scoutapm will instrument</title>
<programlisting role="php">
<![CDATA[
<?php
print_r(scoutapm_list_instrumented_functions());
?>
]]>
</programlisting>
&example.outputs.similar;
<screen>
<![CDATA[
</programlisting>
&example.outputs.similar;
<screen>
<![CDATA[
Array
(
[0] => file_get_contents
@@ -58,14 +56,12 @@ Array
[8] => pdostatement->execute
)
]]>
</screen>
</example>
</para>
</screen>
</example>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml

View File

@@ -1,21 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<chapter xml:id="scoutapm.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="scoutapm.setup">
&reftitle.setup;
<section xml:id="scoutapm.requirements">
&reftitle.required;
<para>
<itemizedlist>
<listitem>
<simpara>PHP &gt;= 7.1.0</simpara>
</listitem>
<listitem>
<simpara>Windows is not currently supported</simpara>
</listitem>
</itemizedlist>
</para>
<itemizedlist>
<listitem>
<simpara>PHP &gt;= 7.1.0</simpara>
</listitem>
<listitem>
<simpara>Windows is not currently supported</simpara>
</listitem>
</itemizedlist>
</section>
<section xml:id="scoutapm.installation">
@@ -37,7 +34,6 @@ extension=scoutapm.so
</section>
</chapter>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml