michael         Tue Jul  4 08:26:08 2006 UTC

  Modified files:              
    /phpdoc/en/reference/expect/functions       expect-expectl.xml 
  Log:
  Fix function prototype, according to latest changes.
  
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/expect/functions/expect-expectl.xml?r1=1.7&r2=1.8&diff_format=u
Index: phpdoc/en/reference/expect/functions/expect-expectl.xml
diff -u phpdoc/en/reference/expect/functions/expect-expectl.xml:1.7 
phpdoc/en/reference/expect/functions/expect-expectl.xml:1.8
--- phpdoc/en/reference/expect/functions/expect-expectl.xml:1.7 Tue Mar  7 
12:07:16 2006
+++ phpdoc/en/reference/expect/functions/expect-expectl.xml     Tue Jul  4 
08:26:08 2006
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
 <refentry id="function.expect-expectl">
  <refnamediv>
   <refname>expect_expectl</refname>
@@ -13,15 +13,18 @@
    <type>mixed</type><methodname>expect_expectl</methodname>
    
<methodparam><type>resource</type><parameter>expect</parameter></methodparam>
    <methodparam><type>array</type><parameter>cases</parameter></methodparam>
-   <methodparam><type>string</type><parameter 
role="reference">match</parameter></methodparam>
+   <methodparam><type>array</type><parameter 
role="reference">match</parameter></methodparam>
   </methodsynopsis>
   <para>
    Waits until the output from a process matches one of the patterns,
    a specified time period has passed, or an EOF is seen.
   </para>
   <para>
-   If <parameter>match</parameter> is provided, then it is filled with the
-   result of search.
+   If <parameter>match</parameter> is provided, then it is filled with the 
result of search.
+   The matched string can be found in <parameter>match[0]</parameter>.
+   The match substrings (according to the parentheses) in the original pattern 
can be found
+   in <parameter>match[1]</parameter>, <parameter>match[2]</parameter>, and so
+   on, up to <parameter>match[9]</parameter> (the limitation of libexpect).
   </para>
  </refsect1>
  <refsect1 role="parameters">

Reply via email to