colder          Fri Sep  8 15:43:59 2006 UTC

  Modified files:              
    /phpdoc/en/reference/curl/functions curl-exec.xml 
  Log:
  Fix #38115 (return values)
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/curl/functions/curl-exec.xml?r1=1.5&r2=1.6&diff_format=u
Index: phpdoc/en/reference/curl/functions/curl-exec.xml
diff -u phpdoc/en/reference/curl/functions/curl-exec.xml:1.5 
phpdoc/en/reference/curl/functions/curl-exec.xml:1.6
--- phpdoc/en/reference/curl/functions/curl-exec.xml:1.5        Fri Feb 27 
05:38:35 2004
+++ phpdoc/en/reference/curl/functions/curl-exec.xml    Fri Sep  8 15:43:59 2006
@@ -1,14 +1,15 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
 <!-- splitted from ./en/functions/curl.xml, last change in rev 1.1 -->
   <refentry id="function.curl-exec">
    <refnamediv>
     <refname>curl_exec</refname>
     <refpurpose>Perform a CURL session</refpurpose>
    </refnamediv>
-   <refsect1>
-    <title>Description</title>
-     <methodsynopsis>
+
+   <refsect1 role="description">
+    &reftitle.description;
+    <methodsynopsis>
       <type>mixed</type><methodname>curl_exec</methodname>
       <methodparam><type>resource</type><parameter>ch</parameter></methodparam>
      </methodsynopsis>
@@ -17,6 +18,20 @@
      session and all the options for the session are set.  Its purpose
      is simply to execute the predefined CURL session (given by the
      <parameter>ch</parameter>).
+    </para>
+   </refsect1>
+
+   <refsect1 role="returnvalues">
+    &reftitle.returnvalues;
+    <para>
+     &return.success; However, if the CURLOPT_RETURNTRANSFER option is set,
+     it will return the result on success, &false; on failure.
+    </para>
+   </refsect1>
+   
+   <refsect1 role="examples">
+    &reftitle.examples;
+    <para>
      <example>
       <title>
        Initializing a new CURL session and fetching a webpage
@@ -41,13 +56,6 @@
       </programlisting>
      </example>
     </para>
-    <note>
-     <para>
-      If you want to have the result returned instead of it being printed to 
the
-      browser directly, use the CURLOPT_RETURNTRANSFER option of
-      <function>curl_setopt</function>.
-     </para>
-    </note>
    </refsect1>
   </refentry>
 

Reply via email to