執行時配置

執行時配置

這些函式的行為受 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 int

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 bool

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.

expect.match_max int

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

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *