From: Lauri Kenttä Date: Sun, 12 Apr 2015 09:38:36 +0000 (+0300) Subject: Fix compile error when oniguruma is not available X-Git-Tag: PRE_PHP7_NSAPI_REMOVAL~325 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=533c4be0d55cf4a6086beab84e5d3ccdbeeb5314;p=php Fix compile error when oniguruma is not available --- diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index 857ad7097e..8ade984ffb 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -1716,11 +1716,13 @@ PHP_MINFO_FUNCTION(mbstring) snprintf(tmp, sizeof(tmp), "%d.%d.%d", MBFL_VERSION_MAJOR, MBFL_VERSION_MINOR, MBFL_VERSION_TEENY); php_info_print_table_row(2, "libmbfl version", tmp); } +#if HAVE_ONIG { char tmp[256]; snprintf(tmp, sizeof(tmp), "%d.%d.%d", ONIGURUMA_VERSION_MAJOR, ONIGURUMA_VERSION_MINOR, ONIGURUMA_VERSION_TEENY); php_info_print_table_row(2, "oniguruma version", tmp); } +#endif php_info_print_table_end(); php_info_print_table_start();