svn: /phpdoc/de/trunk/reference/mysql/ constants.xml functions/mysql-close.xml functions/mysql-connect.xml functions/mysql-list-tables.xml functions/mysql-num-fields.xml functions/mysql-real-escape-string.xml functions/mysql-set-charset.xml functions/mysql-unbuffered-query.xml setup.xml
[email protected] (Christoph Michael Becker)
| Newsgroups | php.doc.de |
|---|---|
| Message-ID | <[email protected]> |
cmb Sat, 27 Jan 2018 18:19:12 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=343987
Log:
Sync with EN
Changed paths:
U phpdoc/de/trunk/reference/mysql/constants.xml
U phpdoc/de/trunk/reference/mysql/functions/mysql-close.xml
U phpdoc/de/trunk/reference/mysql/functions/mysql-connect.xml
U phpdoc/de/trunk/reference/mysql/functions/mysql-list-tables.xml
U phpdoc/de/trunk/reference/mysql/functions/mysql-num-fields.xml
U phpdoc/de/trunk/reference/mysql/functions/mysql-real-escape-string.xml
U phpdoc/de/trunk/reference/mysql/functions/mysql-set-charset.xml
U phpdoc/de/trunk/reference/mysql/functions/mysql-unbuffered-query.xml
U phpdoc/de/trunk/reference/mysql/setup.xml
svn-diffs-343987.txt
(text/x-diff, 10.8 KB)
Modified: phpdoc/de/trunk/reference/mysql/constants.xml
===================================================================
--- phpdoc/de/trunk/reference/mysql/constants.xml 2018-01-27 17:50:56 UTC (rev 343986)
+++ phpdoc/de/trunk/reference/mysql/constants.xml 2018-01-27 18:19:12 UTC (rev 343987)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 323628 Maintainer: simp Status: ready -->
+<!-- EN-Revision: 341282 Maintainer: simp Status: ready -->
<!-- Credits: hholzgra -->
<appendix xml:id="mysql.constants" xmlns="http://docbook.org/ns/docbook">
@@ -7,7 +7,7 @@
&reftitle.constants;
&extension.constants;
<para>
- Ab PHP 4.3.0 ist es möglich zusätzliche Client-Flags bei den Funktionen
+ Es ist möglich zusätzliche Client-Flags bei den Funktionen
<function>mysql_connect</function> und <function>mysql_pconnect</function>
anzugeben. Die folgenden Konstanten sind definiert:
<table xml:id="mysql.client-flags">
Modified: phpdoc/de/trunk/reference/mysql/functions/mysql-close.xml
===================================================================
--- phpdoc/de/trunk/reference/mysql/functions/mysql-close.xml 2018-01-27 17:50:56 UTC (rev 343986)
+++ phpdoc/de/trunk/reference/mysql/functions/mysql-close.xml 2018-01-27 18:19:12 UTC (rev 343987)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 328734 Maintainer: simp Status: ready -->
+<!-- EN-Revision: 337721 Maintainer: simp Status: ready -->
<!-- Credits: hholzgra -->
<refentry xml:id="function.mysql-close" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
@@ -30,12 +30,7 @@
ist. Wird <parameter>link_identifier</parameter> nicht angegeben,
wird die zuletzt geöffnete Verbindung geschlossen.
</para>
- <para>
- Die Verwendung von <function>mysql_close</function> ist für gewöhnlich
- nicht notwendig, weil offene, nicht persistente Verbindungen automatisch
- mit Beendigung des PHP-Skripts geschlossen werden. Siehe auch
- <link linkend="language.types.resource.self-destruct">Freigabe von Resourcen</link>.
- </para>
+ &mysql.close.connections.result.sets;
</refsect1>
<refsect1 role="parameters">
@@ -88,6 +83,9 @@
<function>mysql_close</function> schließt keine persistenten
Verbindungen, die mit <function>mysql_pconnect</function>
geöffnet wurden.
+ Weitere Details sind der Man-Page über
+ <link linkend="features.persistent-connections">Persistente
+ Verbindungen</link> zu entnehmen.
</para>
</note>
</refsect1>
Modified: phpdoc/de/trunk/reference/mysql/functions/mysql-connect.xml
===================================================================
--- phpdoc/de/trunk/reference/mysql/functions/mysql-connect.xml 2018-01-27 17:50:56 UTC (rev 343986)
+++ phpdoc/de/trunk/reference/mysql/functions/mysql-connect.xml 2018-01-27 18:19:12 UTC (rev 343987)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 334605 Maintainer: simp Status: ready -->
+<!-- EN-Revision: 343899 Maintainer: simp Status: ready -->
<!-- Credits: hholzgra -->
<refentry xml:id="function.mysql-connect" xmlns="http://docbook.org/ns/docbook">
@@ -26,7 +26,7 @@
<methodparam choice="opt"><type>string</type><parameter>server</parameter><initializer>ini_get("mysql.default_host")</initializer></methodparam>
<methodparam choice="opt"><type>string</type><parameter>username</parameter><initializer>ini_get("mysql.default_user")</initializer></methodparam>
<methodparam choice="opt"><type>string</type><parameter>password</parameter><initializer>ini_get("mysql.default_password")</initializer></methodparam>
- <methodparam choice="opt"><type>bool</type><parameter>new_link</parameter><initializer>false</initializer></methodparam>
+ <methodparam choice="opt"><type>bool</type><parameter>new_link</parameter><initializer>&false;</initializer></methodparam>
<methodparam choice="opt"><type>int</type><parameter>client_flags</parameter><initializer>0</initializer></methodparam>
</methodsynopsis>
<para>
Modified: phpdoc/de/trunk/reference/mysql/functions/mysql-list-tables.xml
===================================================================
--- phpdoc/de/trunk/reference/mysql/functions/mysql-list-tables.xml 2018-01-27 17:50:56 UTC (rev 343986)
+++ phpdoc/de/trunk/reference/mysql/functions/mysql-list-tables.xml 2018-01-27 18:19:12 UTC (rev 343987)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 336004 Maintainer: simp Status: ready -->
+<!-- EN-Revision: 338412 Maintainer: simp Status: ready -->
<!-- Credits: hholzgra -->
<refentry xml:id="function.mysql-list-tables" xmlns="http://docbook.org/ns/docbook">
@@ -13,7 +13,7 @@
<warning>
&mysql.alternative.note.4-3-0;
<simplelist role="alternatives">
- <member>SQL Query: <literal>SHOW TABLES FROM tabelle</literal></member>
+ <member>SQL Query: <literal>SHOW TABLES FROM dbname</literal></member>
</simplelist>
</warning>
</refsynopsisdiv>
Modified: phpdoc/de/trunk/reference/mysql/functions/mysql-num-fields.xml
===================================================================
--- phpdoc/de/trunk/reference/mysql/functions/mysql-num-fields.xml 2018-01-27 17:50:56 UTC (rev 343986)
+++ phpdoc/de/trunk/reference/mysql/functions/mysql-num-fields.xml 2018-01-27 18:19:12 UTC (rev 343987)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 328734 Maintainer: simp Status: ready -->
+<!-- EN-Revision: 337656 Maintainer: simp Status: ready -->
<!-- Credits: hholzgra -->
<refentry xml:id="function.mysql-num-fields" xmlns="http://docbook.org/ns/docbook">
@@ -13,7 +13,7 @@
<warning>
&mysql.alternative.note;
<simplelist role="alternatives">
- <member><function>mysqli_field_count</function></member>
+ <member><function>mysqli_num_fields</function></member>
<member><methodname>PDOStatement::columnCount</methodname></member>
</simplelist>
</warning>
Modified: phpdoc/de/trunk/reference/mysql/functions/mysql-real-escape-string.xml
===================================================================
--- phpdoc/de/trunk/reference/mysql/functions/mysql-real-escape-string.xml 2018-01-27 17:50:56 UTC (rev 343986)
+++ phpdoc/de/trunk/reference/mysql/functions/mysql-real-escape-string.xml 2018-01-27 18:19:12 UTC (rev 343987)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 328734 Maintainer: simp Status: ready -->
+<!-- EN-Revision: 337755 Maintainer: simp Status: ready -->
<!-- Credits: sammywg -->
<refentry xml:id="function.mysql-real-escape-string" xmlns="http://docbook.org/ns/docbook">
@@ -84,7 +84,15 @@
</para>
</refsect1>
- <refsect1 role="examples">
+ <refsect1 role="errors">
+ &reftitle.errors;
+ <para>
+ Wird diese Funktion ohne MySQL-Verbindung ausgeführt, werden ebenfalls
+ PHP-Fehler der Stufe <constant>E_WARNUNG</constant> ausgelöst. Diese Funktion
+ sollte nur mit einer gültigen MySQL-Verbindung verwendet werden.
+ </para>
+ </refsect1>
+ <refsect1 role="examples">
&reftitle.examples;
<para>
<example>
@@ -107,6 +115,40 @@
</para>
<para>
<example>
+ <title><function>mysql_real_escape_string</function> benötigt eine Verbindung</title>
+ <para>
+ Diese Beispiel verdeutlicht was geschieht, wenn keine MySQL-Verbindung
+ vorhanden ist, wenn diese Funktion aufgerufen wird.
+ </para>
+ <programlisting role="php">
+<![CDATA[
+<?php
+// Wir sind nicht mit MySQL verbunden
+
+$lastname = "O'Reilly";
+$_lastname = mysql_real_escape_string($lastname);
+
+$query = "SELECT * FROM actors WHERE last_name = '$_lastname'";
+
+var_dump($_lastname);
+var_dump($query);
+?>
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <screen>
+<![CDATA[
+Warning: mysql_real_escape_string(): No such file or directory in /this/test/script.php on line 5
+Warning: mysql_real_escape_string(): A link to the server could not be established in /this/test/script.php on line 5
+
+bool(false)
+string(41) "SELECT * FROM actors WHERE last_name = ''"
+]]>
+ </screen>
+ </example>
+ </para>
+ <para>
+ <example>
<title>Ein beispielhafter SQL Injection Angriff</title>
<programlisting role="php">
<![CDATA[
Modified: phpdoc/de/trunk/reference/mysql/functions/mysql-set-charset.xml
===================================================================
--- phpdoc/de/trunk/reference/mysql/functions/mysql-set-charset.xml 2018-01-27 17:50:56 UTC (rev 343986)
+++ phpdoc/de/trunk/reference/mysql/functions/mysql-set-charset.xml 2018-01-27 18:19:12 UTC (rev 343987)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 332596 Maintainer: simp Status: ready -->
+<!-- EN-Revision: 337633 Maintainer: simp Status: ready -->
<!-- Credits: hholzgra -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.mysql-set-charset" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:phd="http://www.php.net/ns/phd">
@@ -77,9 +77,9 @@
&reftitle.seealso;
<para>
<simplelist>
- <member><function>mysql_client_encoding</function></member>
<member><link linkend="mysqlinfo.concepts.charset">Setzen des Zeichensatzes in MySQL</link></member>
<member><link xlink:href="&url.mysql.charsets;">Liste der von MySQL unterstützten Zeichensätze</link></member>
+ <member><function>mysql_client_encoding</function></member>
</simplelist>
</para>
</refsect1>
Modified: phpdoc/de/trunk/reference/mysql/functions/mysql-unbuffered-query.xml
===================================================================
--- phpdoc/de/trunk/reference/mysql/functions/mysql-unbuffered-query.xml 2018-01-27 17:50:56 UTC (rev 343986)
+++ phpdoc/de/trunk/reference/mysql/functions/mysql-unbuffered-query.xml 2018-01-27 18:19:12 UTC (rev 343987)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 328734 Maintainer: simp Status: ready -->
+<!-- EN-Revision: 343888 Maintainer: simp Status: ready -->
<!-- Credits: hholzgra -->
<refentry xml:id="function.mysql-unbuffered-query" xmlns="http://docbook.org/ns/docbook">
Modified: phpdoc/de/trunk/reference/mysql/setup.xml
===================================================================
--- phpdoc/de/trunk/reference/mysql/setup.xml 2018-01-27 17:50:56 UTC (rev 343986)
+++ phpdoc/de/trunk/reference/mysql/setup.xml 2018-01-27 18:19:12 UTC (rev 343987)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 288721 Maintainer: hholzgra Status: ready -->
+<!-- EN-Revision: 340323 Maintainer: hholzgra Status: ready -->
<chapter xml:id="mysql.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.setup;
@@ -12,6 +12,9 @@
Um diese Funktionen nutzen zu können, müssen Sie PHP mit
MySQL-Unterstützung übersetzen.
</para>
+ <warning>
+ &mysql.alternative.note;
+ </warning>
</section>
<!-- }}} -->