Поведението на тези функции зависи от настройките в php.ini.
In order to configure expect extension, there are configuration options in the configuration file php.ini.
Име | По подразбиране | Модифицируемо | Changelog |
---|---|---|---|
expect.timeout | "10" | PHP_INI_ALL | |
expect.loguser | "1" | PHP_INI_ALL | |
expect.logfile | "" | PHP_INI_ALL |
За по-детайлна информация и дефинициите на константите PHP_INI_*, вижте Where a configuration setting may be set.
Тук има кратко описание на конфигурационните директиви.
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.
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.