svn: /phpdoc/de/trunk/ features/commandline.xml reference/com/com/construct.xml reference/com/com.xml reference/com/variant/construct.xml reference/com/variant.xml reference/openssl/functions/openssl-csr-get-subject.xml reference/var/functions/var-export.xml
[email protected] (Christoph Michael Becker)
| Newsgroups | php.doc.de |
|---|---|
| Message-ID | <[email protected]> |
cmb Sun, 01 Mar 2020 09:55:41 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=349270
Log:
Sync with EN
Changed paths:
U phpdoc/de/trunk/features/commandline.xml
U phpdoc/de/trunk/reference/com/com/construct.xml
U phpdoc/de/trunk/reference/com/com.xml
U phpdoc/de/trunk/reference/com/variant/construct.xml
U phpdoc/de/trunk/reference/com/variant.xml
U phpdoc/de/trunk/reference/openssl/functions/openssl-csr-get-subject.xml
U phpdoc/de/trunk/reference/var/functions/var-export.xml
svn-diffs-349270.txt
(text/x-diff, 14.2 KB)
Modified: phpdoc/de/trunk/features/commandline.xml
===================================================================
--- phpdoc/de/trunk/features/commandline.xml 2020-03-01 09:30:53 UTC (rev 349269)
+++ phpdoc/de/trunk/features/commandline.xml 2020-03-01 09:55:41 UTC (rev 349270)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 346151 Maintainer: nikic Status: ready -->
+<!-- EN-Revision: 349269 Maintainer: nikic Status: ready -->
<!-- Credits: hholzgra, fa -->
<chapter xml:id="features.commandline" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -1700,7 +1700,31 @@
</tbody>
</tgroup>
</table>
-
+
+ <table>
+ <title>Changelog</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>7.4.0</entry>
+ <entry>
+ Der eingebaute Webserver kann so konfiguriert werden, dass mehrere Worker
+ geforkt werden können, um Code zu testen, der mehrere gleichzeitige Anfragen
+ erfordert. Dazu muss die Umgebungsvariable <envar>PHP_CLI_SERVER_WORKERS</envar>
+ auf die Zahl der gewünschten Worker gesetzt werden bevor der Server gestartet
+ wird.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
<example>
<title>Starten des Webservers</title>
<programlisting role="shell">
Modified: phpdoc/de/trunk/reference/com/com/construct.xml
===================================================================
--- phpdoc/de/trunk/reference/com/com/construct.xml 2020-03-01 09:30:53 UTC (rev 349269)
+++ phpdoc/de/trunk/reference/com/com/construct.xml 2020-03-01 09:55:41 UTC (rev 349270)
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 347692 Maintainer: nobody Status: ready -->
+<!-- EN-Revision: 349253 Maintainer: nobody Status: ready -->
<refentry xml:id="com.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
- <refname>COM::__construct</refname>
- <refpurpose>COM-Klassenkonstruktor</refpurpose>
+ <refname>com::__construct</refname>
+ <refpurpose>com-Klassenkonstruktor</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<constructorsynopsis role="oop">
- <methodname>COM::__construct</methodname>
+ <methodname>com::__construct</methodname>
<methodparam><type>string</type><parameter>module_name</parameter></methodparam>
<methodparam choice="opt"><type>mixed</type><parameter>server_name</parameter><initializer>&null;</initializer></methodparam>
<methodparam choice="opt"><type>int</type><parameter>codepage</parameter><initializer>CP_ACP</initializer></methodparam>
@@ -18,7 +18,7 @@
<methodparam choice="opt"><type>string</type><parameter>typelib</parameter></methodparam>
</constructorsynopsis>
<para>
- Konstruiert ein neues COM Objekt.
+ Konstruiert ein neues com Objekt.
</para>
</refsect1>
Modified: phpdoc/de/trunk/reference/com/com.xml
===================================================================
--- phpdoc/de/trunk/reference/com/com.xml 2020-03-01 09:30:53 UTC (rev 349269)
+++ phpdoc/de/trunk/reference/com/com.xml 2020-03-01 09:55:41 UTC (rev 349270)
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 347690 Maintainer: nobody Status: ready -->
+<!-- EN-Revision: 349253 Maintainer: nobody Status: ready -->
<phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="class.com" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
- <titleabbrev>COM</titleabbrev>
- <title>Die COM-Klasse</title>
+ <titleabbrev>com</titleabbrev>
+ <title>Die com-Klasse</title>
<partintro>
-<!-- {{{ COM intro -->
+<!-- {{{ com intro -->
<section xml:id="com.intro">
&reftitle.intro;
<para>
- Die COM-Klasse erlaubt Ihnen, ein OLE-kompatibles COM-Objekt zu erzeugen,
+ Die com-Klasse erlaubt Ihnen, ein OLE-kompatibles COM-Objekt zu erzeugen,
seine Methoden aufzurufen und auf seine Eigenschaften zuzugreifen.
</para>
</section>
@@ -21,17 +21,17 @@
&reftitle.classsynopsis;
<!-- {{{ Synopsis -->
<classsynopsis>
- <ooclass><classname>COM</classname></ooclass>
+ <ooclass><classname>com</classname></ooclass>
<!-- {{{ Class synopsis -->
<classsynopsisinfo>
<ooclass>
- <classname>COM</classname>
+ <classname>com</classname>
</ooclass>
<ooclass>
<modifier>extends</modifier>
- <classname>VARIANT</classname>
+ <classname>variant</classname>
</ooclass>
</classsynopsisinfo>
@@ -62,15 +62,15 @@
</section>
<section xml:id="class.com.examples">
- <title>COM-Beispiele</title>
+ <title>com-Beispiele</title>
<para>
<example xml:id="example.com1">
- <title>COM-Beispiel 1</title>
+ <title>com-Beispiel 1</title>
<programlisting role="php">
<![CDATA[
<?php
// Word starten
-$word = new COM("word.application") or die("Konnte Word nicht instanziieren");
+$word = new com("word.application") or die("Konnte Word nicht instanziieren");
echo "Word geladen, Version {$word->Version}\n";
//sichtbar machen
@@ -95,12 +95,12 @@
</para>
<para>
<example xml:id="example.com2">
- <title>COM-Beispiel 2</title>
+ <title>com-Beispiel 2</title>
<programlisting role="php">
<![CDATA[
<?php
-$conn = new COM("ADODB.Connection") or die("Konnte ADO nicht starten");
+$conn = new com("ADODB.Connection") or die("Konnte ADO nicht starten");
$conn->Open("Provider=SQLOLEDB; Data Source=localhost;
Initial Catalog=database; User ID=user; Password=password");
Modified: phpdoc/de/trunk/reference/com/variant/construct.xml
===================================================================
--- phpdoc/de/trunk/reference/com/variant/construct.xml 2020-03-01 09:30:53 UTC (rev 349269)
+++ phpdoc/de/trunk/reference/com/variant/construct.xml 2020-03-01 09:55:41 UTC (rev 349270)
@@ -1,23 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 347692 Maintainer: nobody Status: ready -->
+<!-- EN-Revision: 349253 Maintainer: nobody Status: ready -->
<refentry xml:id="variant.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
- <refname>VARIANT::__construct</refname>
- <refpurpose>VARIANT Klassen Konstruktor</refpurpose>
+ <refname>variant::__construct</refname>
+ <refpurpose>variant Klassen Konstruktor</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<constructorsynopsis role="oop">
- <methodname>VARIANT::__construct</methodname>
+ <methodname>variant::__construct</methodname>
<methodparam choice="opt"><type>mixed</type><parameter>value</parameter><initializer>&null;</initializer></methodparam>
<methodparam choice="opt"><type>int</type><parameter>type</parameter><initializer>VT_EMPTY</initializer></methodparam>
<methodparam choice="opt"><type>int</type><parameter>codepage</parameter><initializer>CP_ACP</initializer></methodparam>
</constructorsynopsis>
<para>
- Konstruiert ein neues VARIANT Objekt.
+ Konstruiert ein neues variant Objekt.
</para>
</refsect1>
@@ -36,13 +36,13 @@
<term><parameter>type</parameter></term>
<listitem>
<simpara>
- Spezifiziert den Typ des Inhalts des VARIANT Objektes. Mögliche Werte sind
+ Spezifiziert den Typ des Inhalts des variant Objektes. Mögliche Werte sind
eine der <constant>VT_XXX</constant> <xref linkend="com.constants"/>.
</simpara>
<simpara>
PHP kann Parameter, die per
Referenz übergeben wurden, automatisch erkennen; sie müssen nicht einmal
- als VARIANT Objekte übergeben werden.
+ als variant Objekte übergeben werden.
</simpara>
<simpara>
Die <acronym>MSDN</acronym> Bibliothek kann für zusätzliche Informationen
Modified: phpdoc/de/trunk/reference/com/variant.xml
===================================================================
--- phpdoc/de/trunk/reference/com/variant.xml 2020-03-01 09:30:53 UTC (rev 349269)
+++ phpdoc/de/trunk/reference/com/variant.xml 2020-03-01 09:55:41 UTC (rev 349270)
@@ -1,19 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 347688 Maintainer: nobody Status: ready -->
+<!-- EN-Revision: 349253 Maintainer: nobody Status: ready -->
<phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="class.variant" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
- <titleabbrev>VARIANT</titleabbrev>
- <title>VARIANT Klasse</title>
+ <titleabbrev>variant</titleabbrev>
+ <title>variant Klasse</title>
<partintro>
-<!-- {{{ VARIANT intro -->
+<!-- {{{ variant intro -->
<section xml:id="variant.intro">
&reftitle.intro;
<para>
Die VARIANTe ist COMs Pendant des PHP zvals; es ist eine Struktur, die einen
Wert einer Reihe unterschiedlicher möglicher Typen enthalten kann. Die
- VARIANT-Klasse, die durch die COM Extension zur Verfügung gestellt wird,
+ variant-Klasse, die durch die COM Extension zur Verfügung gestellt wird,
erlaubt es, mehr Kontrolle über die Art, wie PHP Werte an COM übergibt und
von diesem empfängt, zu haben.
</para>
@@ -25,12 +25,12 @@
<!-- {{{ Synopsis -->
<classsynopsis>
- <ooclass><classname>VARIANT</classname></ooclass>
+ <ooclass><classname>variant</classname></ooclass>
<!-- {{{ Class synopsis -->
<classsynopsisinfo>
<ooclass>
- <classname>VARIANT</classname>
+ <classname>variant</classname>
</ooclass>
</classsynopsisinfo>
<!-- }}} -->
@@ -45,14 +45,14 @@
</section>
<section xml:id="class.variant.examples">
- <title>VARIANT-Beispiele</title>
+ <title>variant-Beispiele</title>
<para>
<example xml:id="com.variant.example.php5">
- <title>Variant-Beispiel</title>
+ <title>variant-Beispiel</title>
<programlisting role="php">
<![CDATA[
<?php
-$v = new VARIANT(42);
+$v = new variant(42);
print "Der Typ ist " . variant_get_type($v) . "<br/>";
print "Der Wert ist " . $v . "<br/>";
?>
@@ -65,7 +65,7 @@
Wenn ein Wert zurückgegeben, oder eine variante Eigenschaft abgerufen wird,
wird die Variante nur in einen PHP-Wert konvertiert, falls es eine direkte,
verlustlose Zuordnung zwischen den Typen gibt. In allen anderen Fällen wird
- das Ergebnis als Exemplar der VARIANT-Klasse zurückgegeben. Es ist möglich
+ das Ergebnis als Exemplar der variant-Klasse zurückgegeben. Es ist möglich
PHP zu zwingen, die Variante in einen nativen Typ zu konvertieren, entweder
durch explizite Verwendung eines Typumwandlungs-Operators, oder durch das
<function>print</function>en implizit in einen String zu wandeln.
Modified: phpdoc/de/trunk/reference/openssl/functions/openssl-csr-get-subject.xml
===================================================================
--- phpdoc/de/trunk/reference/openssl/functions/openssl-csr-get-subject.xml 2020-03-01 09:30:53 UTC (rev 349269)
+++ phpdoc/de/trunk/reference/openssl/functions/openssl-csr-get-subject.xml 2020-03-01 09:55:41 UTC (rev 349270)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 343899 Maintainer: nobody Status: ready -->
+<!-- EN-Revision: 349257 Maintainer: nobody Status: ready -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.openssl-csr-get-subject">
<refnamediv>
@@ -47,7 +47,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- &return.success;
+ Gibt ein assoziatives Array mit der Beschreibung des Subjekts zurück. &return.falseforfailure;
</para>
</refsect1>
Modified: phpdoc/de/trunk/reference/var/functions/var-export.xml
===================================================================
--- phpdoc/de/trunk/reference/var/functions/var-export.xml 2020-03-01 09:30:53 UTC (rev 349269)
+++ phpdoc/de/trunk/reference/var/functions/var-export.xml 2020-03-01 09:55:41 UTC (rev 349270)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 343899 Maintainer: hholzgra Status: ready -->
+<!-- EN-Revision: 349260 Maintainer: hholzgra Status: ready -->
<refentry xml:id="function.var-export" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
@@ -76,6 +76,16 @@
</thead>
<tbody>
<row>
+ <entry>7.3.0</entry>
+ <entry>
+ <classname>stdClass</classname> Objekte werden nun als ein Array exportiert, das zu
+ einem Objekt gecastet wird (<code>(object) array( ... )</code>), anstatt die nicht
+ existente Methode <methodname>stdClass::__setState</methodname> zu verwenden.
+ Der praktische Effekt ist, dass <classname>stdClass</classname> nun exportierbar
+ ist, und der erzeugte Code sogar mit früheren Versionen von PHP funktioniert.
+ </entry>
+ </row>
+ <row>
<entry>5.1.0</entry>
<entry>
Möglichkeit Klassen und Arrays die Klassen enthalten mit Hilfe der
@@ -93,6 +103,30 @@
&reftitle.examples;
<para>
<example>
+ <title>Export von stdClass (seit PHP 7.3.0)</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$person = new stdClass;
+$person->name = 'ElePHPant ElePHPantsdotter';
+$person->website = 'https://php.net/elephpant.php';
+
+var_export($person);
+]]>
+ </programlisting>
+ &example.outputs;
+ <screen>
+<![CDATA[
+(object) array(
+ 'name' => 'ElePHPant ElePHPantsdotter',
+ 'website' => 'https://php.net/elephpant.php',
+)
+]]>
+ </screen>
+ </example>
+ </para>
+ <para>
+ <example>
<title><function>var_export</function> Beispiel</title>
<programlisting role="php">
<![CDATA[
@@ -235,8 +269,9 @@
<para>
Um das von <function>var_export</function> erzeugte PHP ausführen zu
können, müssen alle verarbeiteten Objekte die magische <link
- linkend="object.set-state">__set_state</link> Methode implementieren. Es ist
- zu beachten, dass StdClass __set_state() nicht implementiert.
+ linkend="object.set-state">__set_state</link> Methode implementieren.
+ Die einzige Ausnahme ist <classname>stdClass</classname>, die unter Verwendung
+ eines Arrays, das zu einem Objekt gecastet wird, exportiert wird.
</para>
</note>
</refsect1>