cvs: php4 /ext/standard info.c

From: Date: Thu, 02 May 2002 12:33:04 +0000
Subject: cvs: php4 /ext/standard info.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11622@lists.php.net to get a copy of this message
derick Thu May 2 08:33:04 2002 EDT Modified files: /php4/ext/standard info.c Log: - Add Zend API No. to phpinofo() output Index: php4/ext/standard/info.c diff -u php4/ext/standard/info.c:1.171 php4/ext/standard/info.c:1.172 --- php4/ext/standard/info.c:1.171 Fri Mar 29 05:19:23 2002 +++ php4/ext/standard/info.c Thu May 2 08:33:03 2002 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: info.c,v 1.171 2002/03/29 10:19:23 ssb Exp $ */ +/* $Id: info.c,v 1.172 2002/05/02 12:33:03 derick Exp $ */ #include "php.h" #include "php_ini.h" @@ -32,6 +32,7 @@ #include "build-defs.h" #endif #include "zend_globals.h" /* needs ELS */ +#include "zend_extensions.h" #include "zend_highlight.h" #ifdef HAVE_SYS_UTSNAME_H #include <sys/utsname.h> @@ -206,10 +207,13 @@ int expose_php = INI_INT("expose_php"); time_t the_time; struct tm *ta, tmbuf; + char api_no[9]; the_time = time(NULL); ta = php_localtime_r(&the_time, &tmbuf); + snprintf (&api_no, 9, "%d", ZEND_EXTENSION_API_NO); + PUTS("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n"); if (flag & PHP_INFO_GENERAL) { @@ -251,6 +255,8 @@ #endif 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); #if ZEND_DEBUG php_info_print_table_row(2, "Debug Build", "yes" );

« previous php.cvs (#11622) next »