svn: /phpdoc/fr/trunk/reference/ exec/functions/exec.xml pgsql/functions/pg-fetch-result.xml

[email protected] (George Peter Banyard)
Newsgroups php.doc.fr
Message-ID <[email protected]>
girgias                                  Wed, 09 Dec 2020 17:57:12 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=351980

Log:
Sync with EN

Changed paths:
    U   phpdoc/fr/trunk/reference/exec/functions/exec.xml
    U   phpdoc/fr/trunk/reference/pgsql/functions/pg-fetch-result.xml

Modified: phpdoc/fr/trunk/reference/exec/functions/exec.xml
===================================================================
--- phpdoc/fr/trunk/reference/exec/functions/exec.xml	2020-12-09 17:55:03 UTC (rev 351979)
+++ phpdoc/fr/trunk/reference/exec/functions/exec.xml	2020-12-09 17:57:12 UTC (rev 351980)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 350871 Maintainer: yannick Status: ready -->
+<!-- EN-Revision: 351975 Maintainer: yannick Status: ready -->
 <!-- Reviewed: no -->

 <refentry xml:id="function.exec" xmlns="http://docbook.org/ns/docbook">
@@ -90,10 +90,24 @@
 <?php
 // Affiche le nom d'utilisateur qui fait tourner le processus php/http
 // (sur un système ayant "whoami" dans le chemin d'exécutables)
-echo exec('whoami');
+$output=null;
+$retval=null;
+exec('whoami', $output, $retval);
+echo "Returned with status $retval and output:\n";
+print_r($output);
 ?>
 ]]>
     </programlisting>
+    &example.outputs.similar;
+    <screen>
+<![CDATA[
+Returned with status 0 and output:
+Array
+(
+    [0] => cmb
+)
+]]>
+    </screen>
    </example>
   </para>
  </refsect1>

Modified: phpdoc/fr/trunk/reference/pgsql/functions/pg-fetch-result.xml
===================================================================
--- phpdoc/fr/trunk/reference/pgsql/functions/pg-fetch-result.xml	2020-12-09 17:55:03 UTC (rev 351979)
+++ phpdoc/fr/trunk/reference/pgsql/functions/pg-fetch-result.xml	2020-12-09 17:57:12 UTC (rev 351980)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 297028 Maintainer: jsgoupil Status: ready -->
+<!-- EN-Revision: 351978 Maintainer: jsgoupil Status: ready -->
 <!-- Reviewed: no -->

 <refentry xml:id="function.pg-fetch-result" xmlns="http://docbook.org/ns/docbook">
@@ -14,13 +14,13 @@
  <refsect1 role="description">
   &reftitle.description;
   <methodsynopsis>
-   <type>string</type><methodname>pg_fetch_result</methodname>
+   <type class="union"><type>string</type><type>false</type><type>null</type></type><methodname>pg_fetch_result</methodname>
    <methodparam><type>resource</type><parameter>result</parameter></methodparam>
    <methodparam><type>int</type><parameter>row</parameter></methodparam>
    <methodparam><type>mixed</type><parameter>field</parameter></methodparam>
   </methodsynopsis>
   <methodsynopsis>
-   <type>string</type><methodname>pg_fetch_result</methodname>
+   <type class="union"><type>string</type><type>false</type><type>null</type></type><methodname>pg_fetch_result</methodname>
    <methodparam><type>resource</type><parameter>result</parameter></methodparam>
    <methodparam><type>mixed</type><parameter>field</parameter></methodparam>
   </methodsynopsis>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.