summaryrefslogtreecommitdiff
path: root/ext/standard/ftp_fopen_wrapper.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-04-16 22:14:27 +0000
committerWez Furlong <wez@php.net>2002-04-16 22:14:27 +0000
commitb10b24d50cd4fb584897badee0c6b809b02d7fcb (patch)
tree7f616a36aab17efb68f83ec3075b454eb4b34356 /ext/standard/ftp_fopen_wrapper.c
parentfe2badf64eb32c290e681dd531a27c5467b0867b (diff)
downloadphp-git-b10b24d50cd4fb584897badee0c6b809b02d7fcb.tar.gz
Always initialize wrappers, regardless of PG(allow_url_fopen).
Add is_url field to wrapper structure; the stream wrapper openers will disallow opening is is_url && !PG(allow_url_fopen). Add infrastructure for stat($url) and opendir($url). Tidy up/centralize code that locates and instantiates wrappers for the various operations. Implement opendir for plain files. Make the PHP opendir and dir functions use the streams implementations. Add modelines for syntax highlighting the pear scripts in vim
Diffstat (limited to 'ext/standard/ftp_fopen_wrapper.c')
-rw-r--r--ext/standard/ftp_fopen_wrapper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/standard/ftp_fopen_wrapper.c b/ext/standard/ftp_fopen_wrapper.c
index 2f3db50593..f37b71e01c 100644
--- a/ext/standard/ftp_fopen_wrapper.c
+++ b/ext/standard/ftp_fopen_wrapper.c
@@ -97,7 +97,8 @@ static php_stream_wrapper_ops ftp_stream_wops = {
php_stream_wrapper php_stream_ftp_wrapper = {
&ftp_stream_wops,
- NULL
+ NULL,
+ 1 /* is_url */
};