]> granicus.if.org Git - php/commitdiff
MFH (possible streams crash)
authorIlia Alshanetsky <iliaa@php.net>
Thu, 19 Jun 2003 16:43:41 +0000 (16:43 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 19 Jun 2003 16:43:41 +0000 (16:43 +0000)
ext/standard/info.c

index ec1ed4f554b3e6ee828967599b7756ad82ebada2..7c78207939f51dec7bb9d9458dd9e924d7c2518c 100644 (file)
@@ -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 */))) {