iliaa           Thu Jun 19 12:43:41 2003 EDT

  Modified files:              (Branch: PHP_4_3)
    /php4/ext/standard  info.c 
  Log:
  MFH (possible streams crash)
  
  
Index: php4/ext/standard/info.c
diff -u php4/ext/standard/info.c:1.218.2.12 php4/ext/standard/info.c:1.218.2.13
--- php4/ext/standard/info.c:1.218.2.12 Sun Apr 27 12:35:53 2003
+++ php4/ext/standard/info.c    Thu Jun 19 12:43:41 2003
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: info.c,v 1.218.2.12 2003/04/27 16:35:53 zeev Exp $ */
+/* $Id: info.c,v 1.218.2.13 2003/06/19 16:43:41 iliaa Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -473,10 +473,11 @@
                        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 
*/))) {



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to