zlib: PHP 4.0.4 - PHP 4.2.3(仅用于带 fopencookie 的系统)
PHP 4.3.0 及以上版本支持 compress.zlib:// 和 compress.bzip2://
zlib:
compress.zlib://
compress.bzip2://
zlib: 和 gzopen() 的工作方式相象,只除了流可以用于
fread() 和其它文件系统函数。自 PHP 4.3.0
起已不赞成使用,因为可能会和包含有“:”字符的文件名混淆,用 compress.zlib:// 代替。
compress.zlib:// 和 compress.bzip2:// 各自等同于
gzopen() 和 bzopen(),并且可以在不支持
fopencookie 的系统中使用。
表格 L-6. Wrapper Summary
| 属性 | 支持 |
|---|
| Restricted by allow_url_fopen. | No |
| Allows Reading | Yes |
| Allows Writing | Yes |
| Allows Appending | Yes |
| Allows Simultaneous Reading and Writing | No |
| Supports stat() |
No, use the normal file:// wrapper
to stat compressed files.
|
| Supports unlink() |
No, use the normal file:// wrapper
to unlink compressed files.
|