cvs: php4 /main streams.c
| From: | Marcus B�rger | Date: | Sun, 17 Mar 2002 12:06:41 +0000 |
| Subject: | cvs: php4 /main streams.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-10284@lists.php.net to get a copy of this message | ||
helly Sun Mar 17 07:06:41 2002 EDT
Modified files:
/php4/main streams.c
Log:
-fix bug with wrappers
Index: php4/main/streams.c
diff -u php4/main/streams.c:1.24 php4/main/streams.c:1.25
--- php4/main/streams.c:1.24 Sat Mar 16 15:05:08 2002
+++ php4/main/streams.c Sun Mar 17 07:06:41 2002
@@ -877,7 +877,7 @@
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)