[DOC-CVS] [doc-en] master: mysqlinfo: fix XML to remove useless wrapping para tags via script
[email protected] (Gina Peter Banyard)
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Gina Peter Banyard (Girgias)
Date: 2026-01-19T03:27:07Z
Commit: https://github.com/php/doc-en/commit/d5ca1ca91dd8393ea8a3215b73722f59654f7849
Raw diff: https://github.com/php/doc-en/commit/d5ca1ca91dd8393ea8a3215b73722f59654f7849.diff
mysqlinfo: fix XML to remove useless wrapping para tags via script
Changed paths:
M reference/mysqlinfo/set.xml
Diff:
diff --git a/reference/mysqlinfo/set.xml b/reference/mysqlinfo/set.xml
index 7f50bf429451..aa6bea68d1c1 100644
--- a/reference/mysqlinfo/set.xml
+++ b/reference/mysqlinfo/set.xml
@@ -1,7 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision$ -->
-
-<set xml:id="set.mysqlinfo" xmlns:xlink="http://www.w3.org/1999/xlink">
+<!-- $Revision$ --><set xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="set.mysqlinfo">
<title>MySQL Drivers and Plugins</title>
<titleabbrev>MySQL</titleabbrev>
@@ -49,7 +47,7 @@
</para>
</preface>
- <chapter xml:id="mysqlinfo.terminology" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <chapter xmlns="http://docbook.org/ns/docbook" xml:id="mysqlinfo.terminology">
<title>Terminology overview</title>
<para>
This section provides an introduction to the options available to
@@ -166,7 +164,7 @@
</para>
</chapter>
- <chapter xml:id="mysqlinfo.api.choosing" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <chapter xmlns="http://docbook.org/ns/docbook" xml:id="mysqlinfo.api.choosing">
<title>Choosing an API</title>
<para>
PHP offers different APIs to connect to MySQL. Below we show
@@ -175,10 +173,9 @@
the username "user" and the password "password". And a query is run to
greet the user.
</para>
- <para>
- <example>
- <title>Comparing the MySQL APIs</title>
- <programlisting role="php">
+ <example>
+ <title>Comparing the MySQL APIs</title>
+ <programlisting role="php">
<![CDATA[
<?php
// mysqli
@@ -193,13 +190,11 @@ $statement = $pdo->query("SELECT 'Hello, dear MySQL user!' AS _message FROM DUAL
$row = $statement->fetch(PDO::FETCH_ASSOC);
echo htmlentities($row['_message']);
]]>
- </programlisting>
- </example>
- </para>
- <para>
- <example>
- <title>Comparing prepared statements</title>
- <programlisting role="php">
+ </programlisting>
+ </example>
+ <example>
+ <title>Comparing prepared statements</title>
+ <programlisting role="php">
<![CDATA[
<?php
// mysqli
@@ -217,9 +212,8 @@ $statement->execute(["Amersfoort"]);
$row = $statement->fetch(PDO::FETCH_ASSOC);
echo htmlentities($row['District']);
]]>
- </programlisting>
- </example>
- </para>
+ </programlisting>
+ </example>
<para>
<emphasis role="bold">Feature comparison</emphasis>
</para>
@@ -233,7 +227,7 @@ echo htmlentities($row['District']);
<tgroup cols="3">
<thead>
<row>
- <entry></entry>
+ <entry/>
<entry>ext/mysqli</entry>
<entry>PDO_MySQL</entry>
</row>
@@ -329,7 +323,7 @@ echo htmlentities($row['District']);
</informaltable>
</chapter>
- <chapter xml:id="mysqlinfo.library.choosing" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <chapter xmlns="http://docbook.org/ns/docbook" xml:id="mysqlinfo.library.choosing">
<title>Choosing a library</title>
<para>
The mysqli and PDO_MySQL PHP extensions are lightweight wrappers on
@@ -344,10 +338,9 @@ echo htmlentities($row['District']);
See the <link linkend="book.mysqlnd">mysqlnd documentation</link> for
additional details, and a listing of features and functionality that it offers.
</para>
- <para>
- <example>
- <title>Configure commands for using mysqlnd or libmysqlclient</title>
- <programlisting role="shell">
+ <example>
+ <title>Configure commands for using mysqlnd or libmysqlclient</title>
+ <programlisting role="shell">
<![CDATA[
// Recommended, compiles with mysqlnd
$ ./configure --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd
@@ -358,9 +351,8 @@ $ ./configure --with-mysqli --with-pdo-mysql
// Not recommended, compiles with libmysqlclient
$ ./configure --with-mysqli=/path/to/mysql_config --with-pdo-mysql=/path/to/mysql_config
]]>
- </programlisting>
- </example>
- </para>
+ </programlisting>
+ </example>
<para>
<emphasis role="bold">Library feature comparison</emphasis>
</para>
@@ -373,7 +365,7 @@ $ ./configure --with-mysqli=/path/to/mysql_config --with-pdo-mysql=/path/to/mysq
<tgroup cols="3">
<thead>
<row>
- <entry></entry>
+ <entry/>
<entry>MySQL native driver (<link linkend="book.mysqlnd">mysqlnd</link>)</entry>
<entry>MySQL client server library (<literal>libmysqlclient</literal>)</entry>
</row>
@@ -468,9 +460,9 @@ $ ./configure --with-mysqli=/path/to/mysql_config --with-pdo-mysql=/path/to/mysq
</tgroup>
</informaltable>
</chapter>
-
+
&reference.mysqlinfo.concepts;
-
+
</book>
&reference.mysqli.book;