ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> phpdoc
phpdoc
[PHP-DOC] cvs: phpdoc /en/reference/expect/functions expect-expectl.xml
by Michael Spector other posts by this author
Jul 4 2006 1:46AM messages near this date
RE: [PHP-DOC] Contractions in the English PHP Documentation and supporting scripts/files. | [PHP-DOC] cvs: phpdoc /en/reference/expect/functions expect-expectl.xml
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/expe
ct/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></methodpar
am> 
+   <methodparam> <type>array</type><parameter role="reference">match</parameter></methodpara
m> 
   </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"> 
Thread:
Michael Spector
Michael Spector
Hannes Magnusson
Michael Spector
Hannes Magnusson

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved