]> granicus.if.org Git - php/commitdiff
-fix bug with wrappers
authorMarcus Boerger <helly@php.net>
Sun, 17 Mar 2002 12:06:41 +0000 (12:06 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 17 Mar 2002 12:06:41 +0000 (12:06 +0000)
main/streams.c

index 73191464e52683f05a2f148ea3286e1d423eae09..e84f6804b305c71141e8908d53c1a5ac9dac2f49 100755 (executable)
@@ -877,7 +877,7 @@ int php_shutdown_stream_wrappers(TSRMLS_D)
 PHPAPI int php_register_url_stream_wrapper(char *protocol, php_stream_wrapper *wrapper TSRMLS_DC)
 {
        if (PG(allow_url_fopen))
-               return zend_hash_add(&url_stream_wrappers_hash, protocol, strlen(protocol), wrapper, sizeof(wrapper), NULL);
+               return zend_hash_add(&url_stream_wrappers_hash, protocol, strlen(protocol), wrapper, sizeof(*wrapper), NULL);
        return FAILURE;
 }
 PHPAPI int php_unregister_url_stream_wrapper(char *protocol TSRMLS_DC)