]> granicus.if.org Git - php/commitdiff
fix crash in MINFO when no mysqlnd plugins are loaded
authorAnatol Belski <ab@php.net>
Mon, 14 Apr 2014 15:44:47 +0000 (17:44 +0200)
committerAnatol Belski <ab@php.net>
Mon, 14 Apr 2014 15:44:47 +0000 (17:44 +0200)
ext/mysqlnd/php_mysqlnd.c

index 34447a36c397c292b2ffe5c41aa09030ba486179..c2c53604e51322518df65711dd97b8c2f9f2e785 100644 (file)
@@ -111,7 +111,7 @@ mysqlnd_minfo_dump_api_plugins(smart_str * buffer TSRMLS_DC)
        MYSQLND_REVERSE_API **ext;
 
        for (zend_hash_internal_pointer_reset_ex(ht, &pos);
-            zend_hash_get_current_data_ex(ht, (void **) &ext, &pos);
+            zend_hash_get_current_data_ex(ht, (void **) &ext, &pos) == SUCCESS;
             zend_hash_move_forward_ex(ht, &pos)
        ) {
                if (buffer->len) {