PHP 8.3.4 Released!

expect://

expect://处理交互式的流

说明

expect:// 封装协议打开的数据流 PTY 通过提供了对进程 stdio、stdout 和 stderr 的访问。

注意: 该封装协议默认未开启
为了使用 expect:// 封装协议,必须从 » PECL 中安装有效的 » Expect 扩展。

expect:// (PECL)

用法

  • expect://command

可选项

封装协议概要
属性 支持
allow_url_fopen 影响 No
允许读取 Yes
允许写入 Yes
允许添加 Yes
允许同时读和写 No
支持 stat() No
支持 unlink() No
支持 rename() No
支持 mkdir() No
支持 rmdir() No

示例

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top