summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rwxr-xr-xmain/php_streams.h4
-rwxr-xr-xmain/streams.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/main/php_streams.h b/main/php_streams.h
index 815b0ea549..e46dc5db35 100755
--- a/main/php_streams.h
+++ b/main/php_streams.h
@@ -452,6 +452,10 @@ PHPAPI php_stream_context *php_stream_context_set(php_stream *stream, php_stream
php_stream_notification_notify((context), (code), PHP_STREAM_NOTIFY_SEVERITY_ERR, \
(xmsg), (xcode), 0, 0, NULL TSRMLS_CC); } } while(0)
+
+/* Give other modules access to the url_stream_wrappers_hash */
+PHPAPI HashTable *php_stream_get_url_stream_wrappers_hash();
+
#endif
/*
diff --git a/main/streams.c b/main/streams.c
index 5010fb7130..b65f39feef 100755
--- a/main/streams.c
+++ b/main/streams.c
@@ -1481,6 +1481,10 @@ PHPAPI int php_stream_context_set_option(php_stream_context *context,
return zend_hash_update(Z_ARRVAL_PP(wrapperhash), (char*)optionname, strlen(optionname)+1, (void**)&optionvalue, sizeof(zval *), NULL);
}
+PHPAPI HashTable *php_stream_get_url_stream_wrappers_hash()
+{
+ return &url_stream_wrappers_hash;
+}
/*
* Local variables: