diff --git a/reference/expect/configure.xml b/reference/expect/configure.xml new file mode 100644 index 0000000000..cc1ad0104a --- /dev/null +++ b/reference/expect/configure.xml @@ -0,0 +1,44 @@ + + +
+ &reftitle.install; + + &pecl.moved; + &pecl.info; + &url.pecl.package;expect. + + + &pecl.source.4; + In order to use these functions you must compile PHP with expect support + by using the + configure option. + + + Windows users will enable php_expect.dll inside + of &php.ini; in order to use these functions. + &pecl.windows.4; + &pecl.windows.download; + +
+ + + diff --git a/reference/expect/constants.xml b/reference/expect/constants.xml new file mode 100644 index 0000000000..cbf147a10c --- /dev/null +++ b/reference/expect/constants.xml @@ -0,0 +1,97 @@ + + +
+ &reftitle.constants; + &extension.constants; + + + + EXP_GLOB + (integer) + + + + Indicates that the pattern is a glob-style string pattern. + + + + + + EXP_EXACT + (integer) + + + + Indicates that the pattern is an exact string. + + + + + + EXP_REGEXP + (integer) + + + + Indicates that the pattern is a regexp-style string pattern. + + + + + + EXP_EOF + (integer) + + + + Value, returned by expect_expectl, when EOF is + reached. + + + + + + EXP_TIMEOUT + (integer) + + + + Value, returned by expect_expectl upon timeout. + + + + + + EXP_FULLBUFFER + (integer) + + + + Value, returned by expect_expectl if no pattern have + been matched. + + + + +
+ + diff --git a/reference/expect/ini.xml b/reference/expect/ini.xml new file mode 100644 index 0000000000..2bbdcecf4f --- /dev/null +++ b/reference/expect/ini.xml @@ -0,0 +1,123 @@ + + +
+ &reftitle.runtime; + &extension.runtime; + + In order to configure expect extension, there are configuration options + in the configuration file &php.ini;. + + Expect Configuration Options + + + + Name + Default + Changeable + + + + + expect.timeout + "10" + PHP_INI_ALL + + + expect.loguser + "On" + PHP_INI_ALL + + + expect.logfile + "" + PHP_INI_ALL + + + +
+ &ini.php.constants; +
+ + &ini.descriptions.title; + + + + + + expect.timeout + integer + + + + The timeout period for waiting for the data, when using the expect_expectl function. + + + A value of "-1" disables a timeout from occurring. + + + + A value of "0" causes the expect_expectl function to return immediately. + + + + + + + + expect.loguser + boolean + + + + Whether expect should send any output from the spawned process to stdout. + Since interactive programs typically echo their input, this usually suffices + to show both sides of the conversation. + + + + + + + expect.logfile + string + + + + Name of the file, where the output from the spawned process will be + written. If this file doesn't exist, it will be created. + + + + If this configuration is not empty, the output is written regardless of + the value of expect.loguser + + + + + + + +
+ + + +