这些函数的行为受 php.ini 中的设置影响。
In order to configure expect extension, there are configuration options in the configuration file php.ini.
| 名字 | 默认 | 可修改范围 | 更新日志 |
|---|---|---|---|
| expect.timeout | "10" | INI_ALL |
|
| expect.loguser | "1" | INI_ALL |
|
| expect.logfile | "" | INI_ALL |
|
| expect.match_max | "" | INI_ALL |
这是配置指令的简短说明。
expect.timeout
int
注意: A value of "0" causes the expect_expectl() function to return immediately.
expect.loguser
bool
expect.logfile
string
注意: If this configuration is not empty, the output is written regardless of the value of expect.loguser.
expect.match_max
int