From: Derick Rethans Date: Thu, 9 May 2002 11:47:37 +0000 (+0000) Subject: - Show both API nos X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~181 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b3ce60a23055c8c149ff1d6044458f0c0227246;p=php - Show both API nos --- diff --git a/ext/standard/info.c b/ext/standard/info.c index 46ca832742..adaac65ac7 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -207,12 +207,14 @@ PHPAPI void php_print_info(int flag TSRMLS_DC) int expose_php = INI_INT("expose_php"); time_t the_time; struct tm *ta, tmbuf; - char api_no[9]; + char mod_api_no[9]; + char ext_api_no[9]; the_time = time(NULL); ta = php_localtime_r(&the_time, &tmbuf); - snprintf (api_no, 9, "%d", ZEND_EXTENSION_API_NO); + snprintf (mod_api_no, 9, "%d", ZEND_MODULE_API_NO); + snprintf (ext_api_no, 9, "%d", ZEND_EXTENSION_API_NO); PUTS("\n\n"); @@ -256,7 +258,8 @@ PHPAPI void php_print_info(int flag TSRMLS_DC) php_info_print_table_row(2, "Configuration File (php.ini) Path", php_ini_opened_path?php_ini_opened_path:PHP_CONFIG_FILE_PATH); - php_info_print_table_row(2, "Zend API No.", api_no); + php_info_print_table_row(2, "PHP Extensions API No.", mod_api_no); + php_info_print_table_row(2, "Zend Extensions API No.", ext_api_no); #if ZEND_DEBUG php_info_print_table_row(2, "Debug Build", "yes" );