diff options
author | Xinchen Hui <laruence@php.net> | 2014-06-30 15:26:55 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2014-06-30 15:26:55 +0800 |
commit | d660d7f5997347942452ab639345fee7711254a2 (patch) | |
tree | a7624e09078ff491d8edccf1e3e69250a6a98149 /ext/mysqlnd/php_mysqlnd.c | |
parent | 9c96d966bbe7e5d3743498539822247fa5763c44 (diff) | |
download | php-git-d660d7f5997347942452ab639345fee7711254a2.tar.gz |
Fixed segfault while info printing
Diffstat (limited to 'ext/mysqlnd/php_mysqlnd.c')
-rw-r--r-- | ext/mysqlnd/php_mysqlnd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mysqlnd/php_mysqlnd.c b/ext/mysqlnd/php_mysqlnd.c index 3bcaa06327..e0bc6d126d 100644 --- a/ext/mysqlnd/php_mysqlnd.c +++ b/ext/mysqlnd/php_mysqlnd.c @@ -154,12 +154,12 @@ PHP_MINFO_FUNCTION(mysqlnd) smart_str tmp_str = {0}; mysqlnd_plugin_apply_with_argument(mysqlnd_minfo_dump_loaded_plugins, &tmp_str); smart_str_0(&tmp_str); - php_info_print_table_row(2, "Loaded plugins", tmp_str.s->val); + php_info_print_table_row(2, "Loaded plugins", tmp_str.s? tmp_str.s->val : ""); smart_str_free(&tmp_str); mysqlnd_minfo_dump_api_plugins(&tmp_str TSRMLS_CC); smart_str_0(&tmp_str); - php_info_print_table_row(2, "API Extensions", tmp_str.s->val); + php_info_print_table_row(2, "API Extensions", tmp_str.s? tmp_str.s->val : ""); smart_str_free(&tmp_str); } |