锟斤拷锟斤拷时锟斤拷锟斤拷

锟斤拷些锟斤拷锟斤拷锟斤拷锟斤拷为锟斤拷 php.ini 锟叫碉拷锟斤拷锟斤拷影锟届。

In order to configure expect extension, there are configuration options in the configuration file php.ini.

Expect 锟斤拷锟斤拷选锟斤拷
锟斤拷锟斤拷 默锟斤拷 锟斤拷锟睫改凤拷围 Changelog
expect.timeout "10" PHP_INI_ALL  
expect.loguser "1" PHP_INI_ALL  
expect.logfile "" PHP_INI_ALL  
expect.match_max "" PHP_INI_ALL  
锟叫癸拷 PHP_INI_* 锟斤拷式锟侥革拷锟斤拷锟斤拷锟斤拷锟诫定锟藉,锟斤拷 锟斤拷锟矫可憋拷锟借定锟斤拷围锟斤拷

锟斤拷锟斤拷锟斤拷锟斤拷指锟斤拷募锟斤拷说锟斤拷锟斤拷

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.

Note:

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.

Note:

If this configuration is not empty, the output is written regardless of the value of expect.loguser.

expect.match_max integer

Changes default size (2000 bytes) of the buffer used to match asterisks in patterns.