Doc #55454 [Asn->Csd]: Apparent errors in the example for expect_expectl

From: Date: Thu, 25 Aug 2011 21:11:52 +0000
Subject: Doc #55454 [Asn->Csd]: Apparent errors in the example for expect_expectl
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7063@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55454&edit=1 ID: 55454 Updated by: nikic@php.net Reported by: dpatterson at dplhenterprises dot com -Summary: Apparent errors in the examples +Summary: Apparent errors in the example for expect_expectl -Status: Assigned +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant -Assigned To: kalle +Assigned To: nikic Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. I updated the example to just use strings instead of constants (and fixed formatting + added some small comments). Previous Comments: ------------------------------------------------------------------------ [2011-08-25 21:09:14] nikic@php.net Automatic comment from SVN on behalf of nikic Revision: http://svn.php.net/viewvc/?view=revision&revision=315522 Log: Fix Doc Bug #55454: Apparent errors in the examples ------------------------------------------------------------------------ [2011-08-22 14:04:17] kalle@php.net Hi I honestly don't know how this extension works, but if you got a better example then please post it here and I'll update the documentation to reflect it. ------------------------------------------------------------------------ [2011-08-18 20:11:33] dpatterson at dplhenterprises dot com Description: ------------ The examples for the expect extension appear to a number of undefined constants (PASSWORD, YESNO, SHELL, UNAME). These are used in the calls to expect_expectl() and, unless I miss by guess, will result in PHP Notice errors of the form "Use of undefined constant PASSWORD - assumed 'PASSWORD' in ...". Just seems like the examples should be error free as possible. Thanks. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55454&edit=1

« previous php.doc.bugs (#7063) next »