|
|
|
@ -1414,7 +1414,7 @@ PHPAPI int php_register_url_stream_wrapper_volatile(char *protocol, php_stream_w |
|
|
|
if (!FG(stream_wrappers)) { |
|
|
|
php_stream_wrapper tmpwrapper; |
|
|
|
|
|
|
|
FG(stream_wrappers) = emalloc(sizeof(HashTable)); |
|
|
|
ALLOC_HASHTABLE(FG(stream_wrappers)); |
|
|
|
zend_hash_init(FG(stream_wrappers), 0, NULL, NULL, 1); |
|
|
|
zend_hash_copy(FG(stream_wrappers), &url_stream_wrappers_hash, NULL, &tmpwrapper, sizeof(php_stream_wrapper)); |
|
|
|
} |
|
|
|
@ -1427,7 +1427,7 @@ PHPAPI int php_unregister_url_stream_wrapper_volatile(char *protocol TSRMLS_DC) |
|
|
|
if (!FG(stream_wrappers)) { |
|
|
|
php_stream_wrapper tmpwrapper; |
|
|
|
|
|
|
|
FG(stream_wrappers) = emalloc(sizeof(HashTable)); |
|
|
|
ALLOC_HASHTABLE(FG(stream_wrappers)); |
|
|
|
zend_hash_init(FG(stream_wrappers), 0, NULL, NULL, 1); |
|
|
|
zend_hash_copy(FG(stream_wrappers), &url_stream_wrappers_hash, NULL, &tmpwrapper, sizeof(php_stream_wrapper)); |
|
|
|
} |
|
|
|
|