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

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

This commit is contained in:
Gina Peter Banyard
2026-01-19 03:13:32 +00:00
parent 9598935f21
commit d5ca1ca91d

View File

@@ -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;