From: Ilia Alshanetsky Date: Thu, 19 Jun 2003 16:43:41 +0000 (+0000) Subject: MFH (possible streams crash) X-Git-Tag: php-4.3.3RC2~271 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08ce3d0ed5bfc2203b65449b5b9109a4a1a2cae9;p=php MFH (possible streams crash) --- diff --git a/ext/standard/info.c b/ext/standard/info.c index ec1ed4f554..7c78207939 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -473,10 +473,11 @@ PHPAPI void php_print_info(int flag TSRMLS_DC) HashTable *url_stream_wrappers_hash; char *stream_protocol, *stream_protocols_buf = NULL; int stream_protocol_len, stream_protocols_buf_len = 0; + ulong num_key; if ((url_stream_wrappers_hash = php_stream_get_url_stream_wrappers_hash())) { for (zend_hash_internal_pointer_reset(url_stream_wrappers_hash); - zend_hash_get_current_key_ex(url_stream_wrappers_hash, &stream_protocol, &stream_protocol_len, NULL, 0, NULL) == HASH_KEY_IS_STRING; + zend_hash_get_current_key_ex(url_stream_wrappers_hash, &stream_protocol, &stream_protocol_len, &num_key, 0, NULL) == HASH_KEY_IS_STRING; zend_hash_move_forward(url_stream_wrappers_hash)) { if (NULL == (stream_protocols_buf = erealloc(stream_protocols_buf, stream_protocols_buf_len + stream_protocol_len + 2 /* ", " */ + 1 /* 0 byte at end */))) {