Skip to content

Sync all with EN #2180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions reference/event/eventhttp/accept.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 23ea6be076881a34e1d454e9680968ece085f7f6 Maintainer: yannick Status: ready -->
<!-- EN-Revision: 85d72c5380a0b292f85236fec0d5e6d690a46c30 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="eventhttp.accept" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
Expand Down Expand Up @@ -67,23 +67,26 @@
<programlisting role="php">
<![CDATA[
<?php

$base = new EventBase();
$http = new EventHttp($base);

$addresses = array (
8091 => "127.0.0.1",
8092 => "127.0.0.2",
);
$addresses = [
8091 => "127.0.0.1",
8092 => "127.0.0.2",
];
$i = 0;

$socket = array();

foreach ($addresses as $port => $ip) {
echo $ip, " ", $port, PHP_EOL;
$socket[$i] = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);

if (!socket_bind($socket[$i], $ip, $port)) {
exit("échec de socket_bind\n");
}

socket_listen($socket[$i], 0);
socket_set_nonblock($socket[$i]);

Expand All @@ -95,14 +98,14 @@ foreach ($addresses as $port => $ip) {
++$i;
}

$http->setCallback("/some-page", function() {
echo "(some-page)\n";
$http->setCallback("/some-page", function () {
echo "(some-page)\n";
echo "URI : ", $req->getUri(), PHP_EOL;
$req->sendReply(200, "OK");
echo "OK\n";
});

$http->setDefaultCallback(function($req) {
$http->setDefaultCallback(function ($req) {
echo "URI : ", $req->getUri(), PHP_EOL;
$req->sendReply(200, "OK");
echo "OK\n";
Expand Down
16 changes: 12 additions & 4 deletions reference/mongodb/bson/utcdatetime/construct.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: c8564726a0289d0d685fad368df1ff15c292ff3d Maintainer: yannick Status: ready -->
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="mongodb-bson-utcdatetime.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
Expand All @@ -13,15 +12,15 @@
&reftitle.description;
<methodsynopsis>
<modifier>final</modifier> <modifier>public</modifier> <methodname>MongoDB\BSON\UTCDateTime::__construct</methodname>
<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>
<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>
</methodsynopsis>
</refsect1>

<refsect1 role="parameters">
&reftitle.parameters;
<variablelist>
<varlistentry>
<term><parameter>milliseconds</parameter> (<type class="union"><type>int</type><type>float</type><type>string</type><type>DateTimeInterface</type><type>null</type></type>)</term>
<term><parameter>milliseconds</parameter> (<type class="union"><type>int</type><type>MongoDB\BSON\Int64</type><type>DateTimeInterface</type><type>null</type></type>)</term>
<listitem>
<para>
Nombre de millisecondes depuis l'époque UNIX (1 janvier 1970). Les valeurs
Expand Down Expand Up @@ -61,6 +60,15 @@
</row>
</thead>
<tbody>
<row>
<entry>PECL mongodb 2.0.0</entry>
<entry>
<para>
Le paramètre <parameter>milliseconds</parameter> n'accepte désormais plus
de <type>string</type> ou de <type>float</type>.
</para>
</entry>
</row>
<row>
<entry>PECL mongodb 1.20.0</entry>
<entry>
Expand Down
23 changes: 20 additions & 3 deletions reference/mongodb/functions/bson/fromjson.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: a5eca06ae7725b4c35eefecbb0d722a3e198ff21 Maintainer: yannick Status: ready -->
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.mongodb.bson-fromjson" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand All @@ -12,7 +11,7 @@
<warning>
<para>
Cette fonction a été <emphasis>DÉPRÉCIÉE</emphasis> depuis la version 1.20.0 de l'extension
et sera supprimée dans la version 2.0. Les applications devraient utiliser
et a été supprimée dans la version 2.0. Les applications devraient utiliser
<methodname>MongoDB\BSON\Document::fromJSON</methodname> à la place.
</para>
</warning>
Expand Down Expand Up @@ -64,6 +63,24 @@
</simplelist>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
&mongodb.changelog.function-removed;
</tbody>
</tgroup>
</informaltable>
</para>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
Expand Down
24 changes: 21 additions & 3 deletions reference/mongodb/functions/bson/fromphp.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: a5eca06ae7725b4c35eefecbb0d722a3e198ff21 Maintainer: yannick Status: ready -->
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.mongodb.bson-fromphp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand All @@ -12,7 +11,7 @@
<warning>
<para>
Cette fonction a été <emphasis>DÉPRÉCIÉE</emphasis> depuis la version 1.20.0 de l'extension
et sera supprimée dans la version 2.0. Les applications devraient utiliser
et a été supprimée dans la version 2.0. Les applications devraient utiliser
<methodname>MongoDB\BSON\Document::fromPHP</methodname> à la place.
</para>
</warning>
Expand Down Expand Up @@ -66,6 +65,25 @@
</member>
</simplelist>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
&mongodb.changelog.function-removed;
</tbody>
</tgroup>
</informaltable>
</para>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
Expand Down
24 changes: 22 additions & 2 deletions reference/mongodb/functions/bson/tocanonicalextendedjson.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: a5eca06ae7725b4c35eefecbb0d722a3e198ff21 Maintainer: Fan2Shrek Status: ready -->
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: Fan2Shrek Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.mongodb.bson-tocanonicalextendedjson" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand All @@ -11,7 +11,7 @@
<warning>
<para>
Cette fonction a été <emphasis>DÉPRÉCIÉE</emphasis> depuis la version 1.20.0 de l'extension
et sera supprimée dans la version 2.0. Les applications devraient utiliser
et a été supprimée dans la version 2.0. Les applications devraient utiliser
<methodname>MongoDB\BSON\Document::toCanonicalExtendedJSON</methodname> à la place.
</para>
</warning>
Expand Down Expand Up @@ -60,6 +60,26 @@
&mongodb.throws.bson.unexpected;
</simplelist>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
&mongodb.changelog.function-removed;
</tbody>
</tgroup>
</informaltable>
</para>
</refsect1>


<refsect1 role="examples">
&reftitle.examples;
Expand Down
24 changes: 21 additions & 3 deletions reference/mongodb/functions/bson/tojson.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: a5eca06ae7725b4c35eefecbb0d722a3e198ff21 Maintainer: yannick Status: ready -->
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="function.mongodb.bson-tojson" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
Expand All @@ -13,7 +12,7 @@
<warning>
<para>
Cette fonction a été <emphasis>DÉPRÉCIÉE</emphasis> depuis la version 1.20.0 de l'extension
et sera supprimée dans la version 2.0. Les applications devraient utiliser
et a été supprimée dans la version 2.0. Les applications devraient utiliser
<methodname>MongoDB\BSON\Document::toCanonicalExtendedJSON</methodname> ou
<methodname>MongoDB\BSON\Document::toRelaxedExtendedJSON</methodname> à la place.
</para>
Expand Down Expand Up @@ -84,6 +83,25 @@
&mongodb.throws.bson.unexpected;
</simplelist>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
&mongodb.changelog.function-removed;
</tbody>
</tgroup>
</informaltable>
</para>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
Expand Down
5 changes: 3 additions & 2 deletions reference/mongodb/functions/bson/tophp.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: a5eca06ae7725b4c35eefecbb0d722a3e198ff21 Maintainer: Fan2Shrek Status: ready -->
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: Fan2Shrek Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.mongodb.bson-tophp" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand All @@ -11,7 +11,7 @@
<warning>
<para>
Cette fonction a été <emphasis>DÉPRÉCIÉE</emphasis> depuis la version 1.20.0 de l'extension
et sera supprimée dans la version 2.0. Les applications devraient utiliser
et a été supprimée dans la version 2.0. Les applications devraient utiliser
<methodname>MongoDB\BSON\Document::toPHP</methodname> à la place.
</para>
</warning>
Expand Down Expand Up @@ -80,6 +80,7 @@
</row>
</thead>
<tbody>
&mongodb.changelog.function-removed;
<row>
<entry>PECL mongodb 1.4.0</entry>
<entry>
Expand Down
24 changes: 22 additions & 2 deletions reference/mongodb/functions/bson/torelaxedextendedjson.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: e50e79746736dbdfbabe9bd3566793b3ddf38f58 Maintainer: Fan2Shrek Status: ready -->
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: Fan2Shrek Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.mongodb.bson-torelaxedextendedjson" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand All @@ -11,7 +11,7 @@
<warning>
<para>
Cette fonction a été <emphasis>DÉPRÉCIÉE</emphasis> depuis la version 1.20.0 de l'extension
et sera supprimée dans la version 2.0. Les applications devraient utiliser
et a été supprimée dans la version 2.0. Les applications devraient utiliser
<methodname>MongoDB\BSON\Document::toRelaxedExtendedJSON</methodname> à la place.
</para>
</warning>
Expand Down Expand Up @@ -59,6 +59,26 @@
&mongodb.throws.bson.unexpected;
</simplelist>
</refsect1>

<refsect1 role="changelog">
&reftitle.changelog;
<para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
&mongodb.changelog.function-removed;
</tbody>
</tgroup>
</informaltable>
</para>
</refsect1>


<refsect1 role="examples">
&reftitle.examples;
Expand Down
Loading