summaryrefslogtreecommitdiff
path: root/main/fopen_wrappers.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/fopen_wrappers.c')
-rw-r--r--main/fopen_wrappers.c14
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;