streamWrapper 类 streamWrapper
&reftitle.intro; 允许实现自定义协议处理程序和流,以便与其它文件系统函数(比如 fopenfread 等)一起使用。 不是真实的类,只是如何定义协议的原型类。 不使用此处描述的方法而使用其它方式可能会导致未定义行为。 一旦流函数尝试访问与其关联的协议,就会初始化此类的实例。
&reftitle.classsynopsis; streamWrapper streamWrapper &Properties; public resource context &Methods;
&reftitle.properties; 资源 context 当前 context,或者没有 context 传递给调用函数,则为 &null;。 使用 stream_context_get_options 解析 context。 此属性必须是 public,以便 PHP 可以使用使用实际的 context 资源填充它。
&reftitle.seealso; stream_wrapper_register stream_wrapper_unregister stream_wrapper_restore
&reference.stream.entities.streamwrapper;