]> granicus.if.org Git - php/commitdiff
Fix compile error when oniguruma is not available
authorLauri Kenttä <lauri.kentta@gmail.com>
Sun, 12 Apr 2015 09:38:36 +0000 (12:38 +0300)
committerAnatol Belski <ab@php.net>
Mon, 13 Apr 2015 08:11:38 +0000 (10:11 +0200)
ext/mbstring/mbstring.c

index 857ad7097e129a3725847e5b6964d2b12b05d798..8ade984ffba2eb0bd003a1d6c6e852d09bd183c1 100644 (file)
@@ -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();