summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/user_streams.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/user_streams.c b/main/user_streams.c
index ff22f48159..6c5c53b258 100644
--- a/main/user_streams.c
+++ b/main/user_streams.c
@@ -218,6 +218,7 @@ PHP_FUNCTION(file_register_wrapper)
uwrap->classname = estrndup(classname, classname_len);
uwrap->wrapper.wops = &user_stream_wops;
uwrap->wrapper.abstract = uwrap;
+ uwrap->wrapper.is_url = 1; /* allow safe_mode to disallow this wrapper if enabled */
zend_str_tolower(uwrap->classname, classname_len);
rsrc_id = ZEND_REGISTER_RESOURCE(NULL, uwrap, le_protocols);