diff options
author | Zeev Suraski <zeev@php.net> | 2000-10-28 01:31:56 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-10-28 01:31:56 +0000 |
commit | 3dc7fc54a008eb64b799656b296e0fd09b48c7ff (patch) | |
tree | c9a45ac9046138fbb22205723de24e5d6e6b8927 /main | |
parent | d77aede9a95ed23fdf667b1196de96573783eb62 (diff) | |
download | php-git-3dc7fc54a008eb64b799656b296e0fd09b48c7ff.tar.gz |
- URL-opened files now store the HTTP response header in $http_response_header
- Some layout updates
Diffstat (limited to 'main')
-rw-r--r-- | main/fopen_wrappers.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index 6aaa1bd5ad..0ec968d887 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -431,24 +431,26 @@ static FILE *php_fopen_url_wrapper(const char *path, char *mode, int options, in int n=0; - for(p=path;isalnum((int)*p);p++) + for (p=path; isalnum((int)*p); p++) { n++; - if((*p==':')&&(n>1)) { + } + if ((*p==':')&&(n>1)) { protocol=path; } - if(protocol) { + if (protocol) { php_fopen_url_wrapper_t *wrapper=NULL; - if(FAILURE==zend_hash_find(&fopen_url_wrappers_hash, (char *)protocol, n, (void **)&wrapper)) { + if (FAILURE==zend_hash_find(&fopen_url_wrappers_hash, (char *) protocol, n, (void **)&wrapper)) { wrapper=NULL; protocol=NULL; } - if(wrapper) + if (wrapper) { return (*wrapper)(path, mode, options, issock, socketd, opened_path); + } } - if( !protocol || !strncasecmp(protocol, "file",n)){ + if (!protocol || !strncasecmp(protocol, "file",n)){ PLS_FETCH(); *issock = 0; |