cvs: php4 /ext/standard info.c

From: Date: Thu, 09 May 2002 11:47:37 +0000
Subject: cvs: php4 /ext/standard info.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11761@lists.php.net to get a copy of this message
derick Thu May 9 07:47:37 2002 EDT Modified files: /php4/ext/standard info.c Log: - Show both API nos Index: php4/ext/standard/info.c diff -u php4/ext/standard/info.c:1.173 php4/ext/standard/info.c:1.174 --- php4/ext/standard/info.c:1.173 Thu May 2 13:36:00 2002 +++ php4/ext/standard/info.c Thu May 9 07:47:37 2002 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: info.c,v 1.173 2002/05/02 17:36:00 fmk Exp $ */ +/* $Id: info.c,v 1.174 2002/05/09 11:47:37 derick Exp $ */ #include "php.h" #include "php_ini.h" @@ -207,12 +207,14 @@ 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("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n"); @@ -256,7 +258,8 @@ 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" );

« previous php.cvs (#11761) next »