From: Anatol Belski Date: Mon, 14 Apr 2014 15:44:47 +0000 (+0200) Subject: fix crash in MINFO when no mysqlnd plugins are loaded X-Git-Tag: PRE_PHPNG_MERGE~380^2~3^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e76e87ca961b57737f8f9db68972c5a9ce9b1f7;p=php fix crash in MINFO when no mysqlnd plugins are loaded --- diff --git a/ext/mysqlnd/php_mysqlnd.c b/ext/mysqlnd/php_mysqlnd.c index 34447a36c3..c2c53604e5 100644 --- a/ext/mysqlnd/php_mysqlnd.c +++ b/ext/mysqlnd/php_mysqlnd.c @@ -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) {