From 34cb24fcf76003ef0805ffd38c5b17ad84b2d2c8 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 17 Mar 2002 12:06:41 +0000 Subject: [PATCH] -fix bug with wrappers --- main/streams.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/streams.c b/main/streams.c index 73191464e5..e84f6804b3 100755 --- a/main/streams.c +++ b/main/streams.c @@ -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) -- 2.50.1