This module uses the functions of the » expect library. You need libexpect version >= 5.43.0.
In order to use these functions you must compile PHP with expect support by using the --with-expect[=DIR] configure option.
Windows users will enable
php_expect.dll inside of
php.ini in order
to use these functions. PECL 扩展的 DLL 当前不可用。参见
在 Windows 上构建章节。
In order to configure expect extension, there are configuration options
有关 PHP_INI_* 样式的更多详情与定义，见 配置可被设定范围。
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 class="function">expect_expectl function to return immediately.
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.
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.
Changes default size (2000 bytes) of the buffer used to match asterisks in patterns.
expect_popen returns an open PTY stream used by expect_expectl.