php8.5
Home/ Manual/ reference / expect/ Expect ConfigureOptions

Expect ConfigureOptions

In order to configure expect extension, there are configuration options in the configuration file Ini. Expect ConfigureOptionsNameDefaultChangeableChangelogexpect.timeout"10"INI_ALLexpect.loguser"1"INI_ALLexpect.logfile""INI_ALLexpect.match_max""INI_ALL Constants

Runtime Runtime

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

NameDefaultChangeableChangelog
expect.timeout"10"INI_ALL
expect.loguser"1"INI_ALL
expect.logfile""INI_ALL
expect.match_max""INI_ALL

Constants

Title

expect.timeoutint

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.loguserbool

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.logfilestring

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_maxint

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

Source: reference/expect/ini.xml · from the official PHP manual (php/doc-en)