diff options
author | Derick Rethans <derick@php.net> | 2002-05-02 12:33:03 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2002-05-02 12:33:03 +0000 |
commit | 0c16e026b01c6cfbb53ac990772727bdfa8655bd (patch) | |
tree | 32d98a393770cf2f98663ec402395ce121395ee2 | |
parent | 399914da9263d0b890cd00d50ec3a8ca1b8aba59 (diff) | |
download | php-git-0c16e026b01c6cfbb53ac990772727bdfa8655bd.tar.gz |
- Add Zend API No. to phpinofo() output
-rw-r--r-- | ext/standard/info.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/standard/info.c b/ext/standard/info.c index 24ab23357e..2849094db1 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -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 @@ 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]; 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) { @@ -252,6 +256,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); + #if ZEND_DEBUG php_info_print_table_row(2, "Debug Build", "yes" ); #else |