Skip to content

Commit

Permalink
stream section sync with EN (#889)
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen authored Apr 18, 2024
1 parent 7f3c076 commit a78ae95
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
17 changes: 9 additions & 8 deletions reference/stream/functions/stream-context-create.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 6a5b227850bbad1ec81fd52b6a08e12e3f2c03ac Maintainer: yannick Status: ready -->
<!-- EN-Revision: 29cf1ea0ec2d4ee04f723da66461a2f613e0876f Maintainer: yannick Status: ready -->
<!-- Reviewed: yes -->

<refentry xml:id="function.stream-context-create" xmlns="http://docbook.org/ns/docbook">
Expand Down Expand Up @@ -91,13 +91,14 @@
<programlisting role="php">
<![CDATA[
<?php
$opts = array(
'http'=>array(
'method'=>"GET",
'header'=>"Accept-language: en\r\n" .
"Cookie: foo=bar\r\n"
)
);
$opts = [
'http' => [
'method' => "GET",
// Utilisez un retour à la ligne \n pour séparer plusieurs en-têtes
'header' => "Accept-language: en\nCookie: foo=bar",
]
];
$context = stream_context_create($opts);
Expand Down
4 changes: 2 additions & 2 deletions reference/stream/functions/stream-context-set-params.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: a32b6c51c466458b87c237d7f4ac554c3a7a9a91 Maintainer: yannick Status: ready -->
<!-- EN-Revision: d715365c098db000eaf7dcd987ee6093f6e83091 Maintainer: yannick Status: ready -->
<!-- Reviewed: yes -->

<refentry xml:id="function.stream-context-set-params" xmlns="http://docbook.org/ns/docbook">
Expand All @@ -12,7 +12,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>stream_context_set_params</methodname>
<type>true</type><methodname>stream_context_set_params</methodname>
<methodparam><type>resource</type><parameter>context</parameter></methodparam>
<methodparam><type>array</type><parameter>params</parameter></methodparam>
</methodsynopsis>
Expand Down

0 comments on commit a78ae95

Please sign in to comment.