diff options
author | Wez Furlong <wez@php.net> | 2002-09-07 18:59:18 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-09-07 18:59:18 +0000 |
commit | 759a0068aaaba71d5af72935d8d53bd179822c9c (patch) | |
tree | a12202439812abe99e574ecdc8772e1e8174c323 | |
parent | 431b903e971514373008e4fb047addef8171b743 (diff) | |
download | php-git-759a0068aaaba71d5af72935d8d53bd179822c9c.tar.gz |
Tag user streams as being URLs, so that safe mode restrictions
will come into play.
-rw-r--r-- | main/user_streams.c | 1 |
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); |