Skip to content

Commit 6de6607

Browse files
authored
Sync all with EN (#2180)
1 parent bbded4c commit 6de6607

File tree

14 files changed

+178
-166
lines changed

14 files changed

+178
-166
lines changed

reference/event/eventhttp/accept.xml

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 23ea6be076881a34e1d454e9680968ece085f7f6 Maintainer: yannick Status: ready -->
2+
<!-- EN-Revision: 85d72c5380a0b292f85236fec0d5e6d690a46c30 Maintainer: yannick Status: ready -->
33
<!-- Reviewed: no -->
44

55
<refentry xml:id="eventhttp.accept" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -67,23 +67,26 @@
6767
<programlisting role="php">
6868
<![CDATA[
6969
<?php
70+
7071
$base = new EventBase();
7172
$http = new EventHttp($base);
7273
73-
$addresses = array (
74-
8091 => "127.0.0.1",
75-
8092 => "127.0.0.2",
76-
);
74+
$addresses = [
75+
8091 => "127.0.0.1",
76+
8092 => "127.0.0.2",
77+
];
7778
$i = 0;
7879
7980
$socket = array();
8081
8182
foreach ($addresses as $port => $ip) {
8283
echo $ip, " ", $port, PHP_EOL;
8384
$socket[$i] = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
85+
8486
if (!socket_bind($socket[$i], $ip, $port)) {
8587
exit("échec de socket_bind\n");
8688
}
89+
8790
socket_listen($socket[$i], 0);
8891
socket_set_nonblock($socket[$i]);
8992
@@ -95,14 +98,14 @@ foreach ($addresses as $port => $ip) {
9598
++$i;
9699
}
97100
98-
$http->setCallback("/some-page", function() {
99-
echo "(some-page)\n";
101+
$http->setCallback("/some-page", function () {
102+
echo "(some-page)\n";
100103
echo "URI : ", $req->getUri(), PHP_EOL;
101104
$req->sendReply(200, "OK");
102105
echo "OK\n";
103106
});
104107
105-
$http->setDefaultCallback(function($req) {
108+
$http->setDefaultCallback(function ($req) {
106109
echo "URI : ", $req->getUri(), PHP_EOL;
107110
$req->sendReply(200, "OK");
108111
echo "OK\n";

reference/mongodb/bson/utcdatetime/construct.xml

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- $Revision$ -->
3-
<!-- EN-Revision: c8564726a0289d0d685fad368df1ff15c292ff3d Maintainer: yannick Status: ready -->
2+
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: yannick Status: ready -->
43
<!-- Reviewed: no -->
54

65
<refentry xml:id="mongodb-bson-utcdatetime.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -13,15 +12,15 @@
1312
&reftitle.description;
1413
<methodsynopsis>
1514
<modifier>final</modifier> <modifier>public</modifier> <methodname>MongoDB\BSON\UTCDateTime::__construct</methodname>
16-
<methodparam choice="opt"><type class="union"><type>int</type><type>float</type><type>string</type><type>MongoDB\BSON\Int64</type><type>DateTimeInterface</type><type>null</type></type><parameter>milliseconds</parameter><initializer>&null;</initializer></methodparam>
15+
<methodparam choice="opt"><type class="union"><type>int</type><type>MongoDB\BSON\Int64</type><type>DateTimeInterface</type><type>null</type></type><parameter>milliseconds</parameter><initializer>&null;</initializer></methodparam>
1716
</methodsynopsis>
1817
</refsect1>
1918

2019
<refsect1 role="parameters">
2120
&reftitle.parameters;
2221
<variablelist>
2322
<varlistentry>
24-
<term><parameter>milliseconds</parameter> (<type class="union"><type>int</type><type>float</type><type>string</type><type>DateTimeInterface</type><type>null</type></type>)</term>
23+
<term><parameter>milliseconds</parameter> (<type class="union"><type>int</type><type>MongoDB\BSON\Int64</type><type>DateTimeInterface</type><type>null</type></type>)</term>
2524
<listitem>
2625
<para>
2726
Nombre de millisecondes depuis l'époque UNIX (1 janvier 1970). Les valeurs
@@ -61,6 +60,15 @@
6160
</row>
6261
</thead>
6362
<tbody>
63+
<row>
64+
<entry>PECL mongodb 2.0.0</entry>
65+
<entry>
66+
<para>
67+
Le paramètre <parameter>milliseconds</parameter> n'accepte désormais plus
68+
de <type>string</type> ou de <type>float</type>.
69+
</para>
70+
</entry>
71+
</row>
6472
<row>
6573
<entry>PECL mongodb 1.20.0</entry>
6674
<entry>

reference/mongodb/functions/bson/fromjson.xml

+20-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- $Revision$ -->
3-
<!-- EN-Revision: a5eca06ae7725b4c35eefecbb0d722a3e198ff21 Maintainer: yannick Status: ready -->
2+
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0Maintainer: yannick Status: ready -->
43
<!-- Reviewed: no -->
54
<refentry xml:id="function.mongodb.bson-fromjson" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
65
<refnamediv>
@@ -12,7 +11,7 @@
1211
<warning>
1312
<para>
1413
Cette fonction a été <emphasis>DÉPRÉCIÉE</emphasis> depuis la version 1.20.0 de l'extension
15-
et sera supprimée dans la version 2.0. Les applications devraient utiliser
14+
et a été supprimée dans la version 2.0. Les applications devraient utiliser
1615
<methodname>MongoDB\BSON\Document::fromJSON</methodname> à la place.
1716
</para>
1817
</warning>
@@ -64,6 +63,24 @@
6463
</simplelist>
6564
</refsect1>
6665

66+
<refsect1 role="changelog">
67+
&reftitle.changelog;
68+
<para>
69+
<informaltable>
70+
<tgroup cols="2">
71+
<thead>
72+
<row>
73+
<entry>&Version;</entry>
74+
<entry>&Description;</entry>
75+
</row>
76+
</thead>
77+
<tbody>
78+
&mongodb.changelog.function-removed;
79+
</tbody>
80+
</tgroup>
81+
</informaltable>
82+
</para>
83+
</refsect1>
6784

6885
<refsect1 role="examples">
6986
&reftitle.examples;

reference/mongodb/functions/bson/fromphp.xml

+21-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- $Revision$ -->
3-
<!-- EN-Revision: a5eca06ae7725b4c35eefecbb0d722a3e198ff21 Maintainer: yannick Status: ready -->
2+
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: yannick Status: ready -->
43
<!-- Reviewed: no -->
54
<refentry xml:id="function.mongodb.bson-fromphp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
65
<refnamediv>
@@ -12,7 +11,7 @@
1211
<warning>
1312
<para>
1413
Cette fonction a été <emphasis>DÉPRÉCIÉE</emphasis> depuis la version 1.20.0 de l'extension
15-
et sera supprimée dans la version 2.0. Les applications devraient utiliser
14+
et a été supprimée dans la version 2.0. Les applications devraient utiliser
1615
<methodname>MongoDB\BSON\Document::fromPHP</methodname> à la place.
1716
</para>
1817
</warning>
@@ -66,6 +65,25 @@
6665
</member>
6766
</simplelist>
6867
</refsect1>
68+
69+
<refsect1 role="changelog">
70+
&reftitle.changelog;
71+
<para>
72+
<informaltable>
73+
<tgroup cols="2">
74+
<thead>
75+
<row>
76+
<entry>&Version;</entry>
77+
<entry>&Description;</entry>
78+
</row>
79+
</thead>
80+
<tbody>
81+
&mongodb.changelog.function-removed;
82+
</tbody>
83+
</tgroup>
84+
</informaltable>
85+
</para>
86+
</refsect1>
6987

7088
<refsect1 role="examples">
7189
&reftitle.examples;

reference/mongodb/functions/bson/tocanonicalextendedjson.xml

+22-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: a5eca06ae7725b4c35eefecbb0d722a3e198ff21 Maintainer: Fan2Shrek Status: ready -->
2+
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: Fan2Shrek Status: ready -->
33
<!-- Reviewed: yes -->
44
<refentry xml:id="function.mongodb.bson-tocanonicalextendedjson" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
55
<refnamediv>
@@ -11,7 +11,7 @@
1111
<warning>
1212
<para>
1313
Cette fonction a été <emphasis>DÉPRÉCIÉE</emphasis> depuis la version 1.20.0 de l'extension
14-
et sera supprimée dans la version 2.0. Les applications devraient utiliser
14+
et a été supprimée dans la version 2.0. Les applications devraient utiliser
1515
<methodname>MongoDB\BSON\Document::toCanonicalExtendedJSON</methodname> à la place.
1616
</para>
1717
</warning>
@@ -60,6 +60,26 @@
6060
&mongodb.throws.bson.unexpected;
6161
</simplelist>
6262
</refsect1>
63+
64+
<refsect1 role="changelog">
65+
&reftitle.changelog;
66+
<para>
67+
<informaltable>
68+
<tgroup cols="2">
69+
<thead>
70+
<row>
71+
<entry>&Version;</entry>
72+
<entry>&Description;</entry>
73+
</row>
74+
</thead>
75+
<tbody>
76+
&mongodb.changelog.function-removed;
77+
</tbody>
78+
</tgroup>
79+
</informaltable>
80+
</para>
81+
</refsect1>
82+
6383

6484
<refsect1 role="examples">
6585
&reftitle.examples;

reference/mongodb/functions/bson/tojson.xml

+21-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- $Revision$ -->
3-
<!-- EN-Revision: a5eca06ae7725b4c35eefecbb0d722a3e198ff21 Maintainer: yannick Status: ready -->
2+
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: yannick Status: ready -->
43
<!-- Reviewed: no -->
54

65
<refentry xml:id="function.mongodb.bson-tojson" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -13,7 +12,7 @@
1312
<warning>
1413
<para>
1514
Cette fonction a été <emphasis>DÉPRÉCIÉE</emphasis> depuis la version 1.20.0 de l'extension
16-
et sera supprimée dans la version 2.0. Les applications devraient utiliser
15+
et a été supprimée dans la version 2.0. Les applications devraient utiliser
1716
<methodname>MongoDB\BSON\Document::toCanonicalExtendedJSON</methodname> ou
1817
<methodname>MongoDB\BSON\Document::toRelaxedExtendedJSON</methodname> à la place.
1918
</para>
@@ -84,6 +83,25 @@
8483
&mongodb.throws.bson.unexpected;
8584
</simplelist>
8685
</refsect1>
86+
87+
<refsect1 role="changelog">
88+
&reftitle.changelog;
89+
<para>
90+
<informaltable>
91+
<tgroup cols="2">
92+
<thead>
93+
<row>
94+
<entry>&Version;</entry>
95+
<entry>&Description;</entry>
96+
</row>
97+
</thead>
98+
<tbody>
99+
&mongodb.changelog.function-removed;
100+
</tbody>
101+
</tgroup>
102+
</informaltable>
103+
</para>
104+
</refsect1>
87105

88106
<refsect1 role="examples">
89107
&reftitle.examples;

reference/mongodb/functions/bson/tophp.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: a5eca06ae7725b4c35eefecbb0d722a3e198ff21 Maintainer: Fan2Shrek Status: ready -->
2+
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: Fan2Shrek Status: ready -->
33
<!-- Reviewed: yes -->
44
<refentry xml:id="function.mongodb.bson-tophp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
55
<refnamediv>
@@ -11,7 +11,7 @@
1111
<warning>
1212
<para>
1313
Cette fonction a été <emphasis>DÉPRÉCIÉE</emphasis> depuis la version 1.20.0 de l'extension
14-
et sera supprimée dans la version 2.0. Les applications devraient utiliser
14+
et a été supprimée dans la version 2.0. Les applications devraient utiliser
1515
<methodname>MongoDB\BSON\Document::toPHP</methodname> à la place.
1616
</para>
1717
</warning>
@@ -80,6 +80,7 @@
8080
</row>
8181
</thead>
8282
<tbody>
83+
&mongodb.changelog.function-removed;
8384
<row>
8485
<entry>PECL mongodb 1.4.0</entry>
8586
<entry>

reference/mongodb/functions/bson/torelaxedextendedjson.xml

+22-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: e50e79746736dbdfbabe9bd3566793b3ddf38f58 Maintainer: Fan2Shrek Status: ready -->
2+
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: Fan2Shrek Status: ready -->
33
<!-- Reviewed: yes -->
44
<refentry xml:id="function.mongodb.bson-torelaxedextendedjson" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
55
<refnamediv>
@@ -11,7 +11,7 @@
1111
<warning>
1212
<para>
1313
Cette fonction a été <emphasis>DÉPRÉCIÉE</emphasis> depuis la version 1.20.0 de l'extension
14-
et sera supprimée dans la version 2.0. Les applications devraient utiliser
14+
et a été supprimée dans la version 2.0. Les applications devraient utiliser
1515
<methodname>MongoDB\BSON\Document::toRelaxedExtendedJSON</methodname> à la place.
1616
</para>
1717
</warning>
@@ -59,6 +59,26 @@
5959
&mongodb.throws.bson.unexpected;
6060
</simplelist>
6161
</refsect1>
62+
63+
<refsect1 role="changelog">
64+
&reftitle.changelog;
65+
<para>
66+
<informaltable>
67+
<tgroup cols="2">
68+
<thead>
69+
<row>
70+
<entry>&Version;</entry>
71+
<entry>&Description;</entry>
72+
</row>
73+
</thead>
74+
<tbody>
75+
&mongodb.changelog.function-removed;
76+
</tbody>
77+
</tgroup>
78+
</informaltable>
79+
</para>
80+
</refsect1>
81+
6282

6383
<refsect1 role="examples">
6484
&reftitle.examples;

0 commit comments

Comments
 (0)