/* {{{ PHP_MINFO_FUNCTION */ static PHP_MINFO_FUNCTION(json) { php_info_print_table_start(); php_info_print_table_row(2, "json support", "enabled"); php_info_print_table_row(2, "json version", PHP_JSON_VERSION); php_info_print_table_end(); }
static void php_info_webjames(ZEND_MODULE_INFO_FUNC_ARGS) { php_info_print_table_start(); php_info_print_table_row(2, "SAPI module version", WEBJAMES_SAPI_VERSION); php_info_print_table_row(2, "WebJames version", WEBJAMES_VERSION " (" WEBJAMES_DATE ")"); php_info_print_table_end(); }
static PHP_MINFO_FUNCTION(win32service) { php_info_print_table_start(); php_info_print_table_header(2, "Win32 Service support", "enabled"); php_info_print_table_row(2, "Version", PHP_WIN32SERVICE_VERSION); php_info_print_table_end(); }
static PHP_MINFO_FUNCTION(phalcon) { php_info_print_table_start(); php_info_print_table_row(2, "Phalcon Framework", "enabled"); php_info_print_table_row(2, "Phalcon Version", PHP_PHALCON_VERSION); php_info_print_table_end(); }
static PHP_MINFO_FUNCTION(hstore) { php_info_print_table_start(); php_info_print_table_row(2, "HStore support", "enabled"); php_info_print_table_row(2, "HStore version", PHP_HSTORE_VERSION); php_info_print_table_end(); }
/* {{{ PHP_MINFO_FUNCTION */ static PHP_MINFO_FUNCTION(rrd) { php_info_print_table_start(); php_info_print_table_header(2, "rrd tool module", "enabled"); php_info_print_table_row(2, "rrd tool module version", PHP_RRD_VERSION); php_info_print_table_row(2, "rrdtool library version", rrd_strversion()); php_info_print_table_end(); }
/* {{{ PHP_MINFO_FUNCTION */ static PHP_MINFO_FUNCTION(json) { php_info_print_table_start(); php_info_print_table_row(2, "json support", "enabled"); php_info_print_table_row(2, "json version", PHP_JSON_VERSION); php_info_print_table_row(2, "json remark", "support for non utf8 charset, like 5.3, modify by [email protected]"); php_info_print_table_end(); }
PHPAPI void php_info_print_box_start(int flag) { php_info_print_table_start(); if (flag) { php_printf("<TR VALIGN=\"middle\" BGCOLOR=\"" PHP_HEADER_COLOR "\"><TD ALIGN=\"left\">\n"); } else { php_printf("<TR VALIGN=\"top\" BGCOLOR=\"" PHP_CONTENTS_COLOR "\"><TD ALIGN=\"left\">\n"); } }
/** * @brief Module initialization function * @param zend_module Pointer to the module entry * @param tsrm_ls */ static PHP_MINFO_FUNCTION(pmta) { php_info_print_table_start(); php_info_print_table_row(2, "PHP Submission API for PowerMTA", "enabled"); php_info_print_table_row(2, "Version", PHP_PMTA_EXTVER); php_info_print_table_end(); DISPLAY_INI_ENTRIES(); }
/* {{{ PHP_MINFO_FUNCTION */ static PHP_MINFO_FUNCTION(clmandelbrot) { php_printf("PHP Matsuri 2011\n"); php_info_print_table_start(); php_info_print_table_row(2, "Version",PHP_CLMANDELBROT_VERSION " (alpha)"); php_info_print_table_row(2, "Released", "2011-10-16"); php_info_print_table_row(2, "Authors", "Ryusuke Sekiyama '*****@*****.**' (lead)\n"); php_info_print_table_end(); }
void zend_accel_info(ZEND_MODULE_INFO_FUNC_ARGS) { php_info_print_table_start(); if (ZCG(enabled) && accel_startup_ok && (ZCG(counted) || ZCSG(accelerator_enabled))) { php_info_print_table_row(2, "Opcode Caching", "Up and Running"); } else { php_info_print_table_row(2, "Opcode Caching", "Disabled"); } if (ZCG(enabled) && accel_startup_ok && ZCSG(accelerator_enabled) && ZCG(accel_directives).optimization_level) { php_info_print_table_row(2, "Optimization", "Enabled"); } else { php_info_print_table_row(2, "Optimization", "Disabled"); } if (ZCG(enabled)) { if (!accel_startup_ok || zps_api_failure_reason) { php_info_print_table_row(2, "Startup Failed", zps_api_failure_reason); } else { char buf[32]; php_info_print_table_row(2, "Startup", "OK"); php_info_print_table_row(2, "Shared memory model", zend_accel_get_shared_model()); snprintf(buf, sizeof(buf), "%ld", ZCSG(hits)); php_info_print_table_row(2, "Cache hits", buf); snprintf(buf, sizeof(buf), "%ld", ZSMMG(memory_exhausted)?ZCSG(misses):ZCSG(misses)-ZCSG(blacklist_misses)); php_info_print_table_row(2, "Cache misses", buf); snprintf(buf, sizeof(buf), "%ld", ZCG(accel_directives).memory_consumption-zend_shared_alloc_get_free_memory()-ZSMMG(wasted_shared_memory)); php_info_print_table_row(2, "Used memory", buf); snprintf(buf, sizeof(buf), "%ld", zend_shared_alloc_get_free_memory()); php_info_print_table_row(2, "Free memory", buf); snprintf(buf, sizeof(buf), "%ld", ZSMMG(wasted_shared_memory)); php_info_print_table_row(2, "Wasted memory", buf); #if ZEND_EXTENSION_API_NO > PHP_5_3_X_API_NO if (ZCSG(interned_strings_start) && ZCSG(interned_strings_end) && ZCSG(interned_strings_top)) { snprintf(buf, sizeof(buf), "%ld", ZCSG(interned_strings_top) - ZCSG(interned_strings_start)); php_info_print_table_row(2, "Interned Strings Used memory", buf); snprintf(buf, sizeof(buf), "%ld", ZCSG(interned_strings_end) - ZCSG(interned_strings_top)); php_info_print_table_row(2, "Interned Strings Free memory", buf); } #endif snprintf(buf, sizeof(buf), "%ld", ZCSG(hash).num_direct_entries); php_info_print_table_row(2, "Cached scripts", buf); snprintf(buf, sizeof(buf), "%ld", ZCSG(hash).num_entries); php_info_print_table_row(2, "Cached keys", buf); snprintf(buf, sizeof(buf), "%ld", ZCSG(hash).max_num_entries); php_info_print_table_row(2, "Max keys", buf); snprintf(buf, sizeof(buf), "%ld", ZCSG(oom_restarts)); php_info_print_table_row(2, "OOM restarts", buf); snprintf(buf, sizeof(buf), "%ld", ZCSG(hash_restarts)); php_info_print_table_row(2, "Hash keys restarts", buf); snprintf(buf, sizeof(buf), "%ld", ZCSG(manual_restarts)); php_info_print_table_row(2, "Manual restarts", buf); } } php_info_print_table_end(); DISPLAY_INI_ENTRIES(); }
static PHP_MINFO_FUNCTION(tidy) { php_info_print_table_start(); php_info_print_table_header(2, "Tidy support", "enabled"); php_info_print_table_row(2, "libTidy Release", (char *)tidyReleaseDate()); php_info_print_table_row(2, "Extension Version", PHP_TIDY_VERSION " ($Id: 7a4a7e7d6a3b11be5f7a6f87e82eda4723a0208f $)"); php_info_print_table_end(); DISPLAY_INI_ENTRIES(); }
static PHP_MINFO_FUNCTION(tidy) { php_info_print_table_start(); php_info_print_table_header(2, "Tidy support", "enabled"); php_info_print_table_row(2, "libTidy Release", (char *)tidyReleaseDate()); php_info_print_table_row(2, "Extension Version", PHP_TIDY_VERSION " ($Id: cdda540586e209c347c9a8c68fc07bbc615d8435 $)"); php_info_print_table_end(); DISPLAY_INI_ENTRIES(); }
static PHP_MINFO_FUNCTION(tensile) { php_info_print_table_start(); php_info_print_table_row(2, "Tensorflow Support", "enabled"); php_info_print_table_row(2, "Build", TENSILE_VERSION); php_info_print_table_row(2, "Release", TENSILE_FLAVOR); php_info_print_table_end(); DISPLAY_INI_ENTRIES(); }
/* {{{ PHP_MINFO_FUNCTION */ static PHP_MINFO_FUNCTION(zlib) { php_info_print_table_start(); php_info_print_table_header(2, "ZLib Support", "enabled"); php_info_print_table_row(2, "Stream Wrapper", "compress.zlib://"); php_info_print_table_row(2, "Stream Filter", "zlib.inflate, zlib.deflate"); php_info_print_table_row(2, "Compiled Version", ZLIB_VERSION); php_info_print_table_row(2, "Linked Version", (char *) zlibVersion()); php_info_print_table_end(); DISPLAY_INI_ENTRIES(); }
static ZEND_MINFO_FUNCTION(zopfli) { php_info_print_table_start(); php_info_print_table_row(2, "Zopfli support", "enabled"); php_info_print_table_row(2, "Extension Version", ZOPFLI_EXT_VERSION); #ifdef HAVE_ZLIB_H php_info_print_table_row(2, "Zopfli png recompress", "supported"); #else php_info_print_table_row(2, "Zopfli png recompress", "not supported"); #endif php_info_print_table_end(); }
static ZEND_MINFO_FUNCTION(msgpack) { php_info_print_table_start(); php_info_print_table_row(2, "MessagePack Support", "enabled"); #if HAVE_PHP_SESSION php_info_print_table_row(2, "Session Support", "enabled" ); #endif php_info_print_table_row(2, "extension Version", MSGPACK_EXTENSION_VERSION); php_info_print_table_row(2, "header Version", MSGPACK_VERSION); php_info_print_table_end(); DISPLAY_INI_ENTRIES(); }
/* {{{ PHP_MINFO_FUNCTION */ static PHP_MINFO_FUNCTION(pdo_mysql) { php_info_print_table_start(); php_info_print_table_header(2, "PDO Driver for MySQL", "enabled"); php_info_print_table_row(2, "Client API version", mysql_get_client_info()); php_info_print_table_end(); #ifndef PHP_WIN32 DISPLAY_INI_ENTRIES(); #endif }
static PHP_MINFO_FUNCTION(amqp) /* {{{ */ { php_info_print_table_start(); php_info_print_table_header(2, "Version", PHP_AMQP_VERSION); php_info_print_table_header(2, "Revision", PHP_AMQP_REVISION); php_info_print_table_header(2, "Compiled", __DATE__ " @ " __TIME__); php_info_print_table_header(2, "AMQP protocol version", "0-9-1"); php_info_print_table_header(2, "librabbitmq version", amqp_version()); php_info_print_table_header(2, "Default max channels per connection", DEFAULT_CHANNEL_MAX); php_info_print_table_header(2, "Default max frame size", DEFAULT_FRAME_MAX); php_info_print_table_header(2, "Default heartbeats interval", DEFAULT_HEARTBEAT); DISPLAY_INI_ENTRIES(); } /* }}} */
static void php_info_aolserver(ZEND_MODULE_INFO_FUNC_ARGS) { char buf[512]; int uptime = Ns_InfoUptime(); int i; php_info_print_table_start(); php_info_print_table_row(2, "SAPI module version", "$Id$"); php_info_print_table_row(2, "Build date", Ns_InfoBuildDate()); php_info_print_table_row(2, "Config file path", Ns_InfoConfigFile()); php_info_print_table_row(2, "Error Log path", Ns_InfoErrorLog()); php_info_print_table_row(2, "Installation path", Ns_InfoHomePath()); php_info_print_table_row(2, "Hostname of server", Ns_InfoHostname()); php_info_print_table_row(2, "Source code label", Ns_InfoLabel()); php_info_print_table_row(2, "Server platform", Ns_InfoPlatform()); snprintf(buf, 511, "%s/%s", Ns_InfoServerName(), Ns_InfoServerVersion()); php_info_print_table_row(2, "Server version", buf); snprintf(buf, 511, "%d day(s), %02d:%02d:%02d", uptime / 86400, (uptime / 3600) % 24, (uptime / 60) % 60, uptime % 60); php_info_print_table_row(2, "Server uptime", buf); php_info_print_table_end(); SECTION("HTTP Headers Information"); php_info_print_table_start(); php_info_print_table_colspan_header(2, "HTTP Request Headers"); php_info_print_table_row(2, "HTTP Request", NSG(conn)->request->line); for (i = 0; i < Ns_SetSize(NSG(conn)->headers); i++) { php_info_print_table_row(2, Ns_SetKey(NSG(conn)->headers, i), Ns_SetValue(NSG(conn)->headers, i)); } php_info_print_table_colspan_header(2, "HTTP Response Headers"); for (i = 0; i < Ns_SetSize(NSG(conn)->outputheaders); i++) { php_info_print_table_row(2, Ns_SetKey(NSG(conn)->outputheaders, i), Ns_SetValue(NSG(conn)->outputheaders, i)); } php_info_print_table_end(); }
PHPAPI void display_ini_entries(zend_module_entry *module) { int module_number; ELS_FETCH(); if (module) { module_number = module->module_number; } else { module_number = 0; } php_info_print_table_start(); php_info_print_table_header(3, "Directive", "Local Value", "Master Value"); zend_hash_apply_with_argument(&EG(ini_directives), (apply_func_arg_t) php_ini_displayer, (void *) (long) module_number); php_info_print_table_end(); }
/* {{{ display_ini_entries */ PHPAPI void display_ini_entries(zend_module_entry *module) { int module_number, module_number_available; if (module) { module_number = module->module_number; } else { module_number = 0; } module_number_available = module_number; zend_hash_apply_with_argument(EG(ini_directives), php_ini_available, &module_number_available); if (module_number_available == -1) { php_info_print_table_start(); php_info_print_table_header(3, "Directive", "Local Value", "Master Value"); zend_hash_apply_with_argument(EG(ini_directives), php_ini_displayer, (void *)&module_number); php_info_print_table_end(); } }
static void php_info_isapi(ZEND_MODULE_INFO_FUNC_ARGS) { char **p; char variable_buf[ISAPI_SERVER_VAR_BUF_SIZE]; DWORD variable_len; char **all_variables[] = { isapi_server_variable_names, isapi_special_server_variable_names, isapi_secure_server_variable_names, NULL }; char ***server_variable_names; LPEXTENSION_CONTROL_BLOCK lpECB; lpECB = (LPEXTENSION_CONTROL_BLOCK) SG(server_context); php_info_print_table_start(); php_info_print_table_header(2, "Server Variable", "Value"); server_variable_names = all_variables; while (*server_variable_names) { p = *server_variable_names; while (*p) { variable_len = ISAPI_SERVER_VAR_BUF_SIZE; if (lpECB->GetServerVariable(lpECB->ConnID, *p, variable_buf, &variable_len) && variable_buf[0]) { php_info_print_table_row(2, *p, variable_buf); } else if (GetLastError() == ERROR_INSUFFICIENT_BUFFER) { char *tmp_variable_buf; tmp_variable_buf = (char *) emalloc(variable_len); if (lpECB->GetServerVariable(lpECB->ConnID, *p, tmp_variable_buf, &variable_len) && variable_buf[0]) { php_info_print_table_row(2, *p, tmp_variable_buf); } efree(tmp_variable_buf); } p++; } server_variable_names++; } php_info_print_table_end(); }
static PHP_MINFO_FUNCTION(phk) { php_info_print_table_start(); php_info_print_table_row(2, "PHK/Automap accelerator", "enabled"); php_info_print_table_row(2, "Version", PHK_ACCEL_VERSION); php_info_print_table_row(2, "Cache used",PHK_Cache_cacheName(TSRMLS_C)); #ifdef PHK_DEBUG { char buf[10]; sprintf(buf,"%d",zend_hash_num_elements(&persistent_mtab)); php_info_print_table_row(2, "Persistent package count",buf); sprintf(buf,"%d",zend_hash_num_elements(&pmap_array)); php_info_print_table_row(2, "Persistent map count",buf); } #endif php_info_print_table_end(); }
static PHP_MINFO_FUNCTION(dba) { dba_handler *hptr; smart_str handlers = {0}; for(hptr = handler; hptr->name; hptr++) { smart_str_appends(&handlers, hptr->name); smart_str_appendc(&handlers, ' '); } php_info_print_table_start(); php_info_print_table_row(2, "DBA support", "enabled"); if (handlers.c) { smart_str_0(&handlers); php_info_print_table_row(2, "Supported handlers", handlers.c); smart_str_free(&handlers); } else { php_info_print_table_row(2, "Supported handlers", "none"); } php_info_print_table_end(); }
void zend_accel_info(ZEND_MODULE_INFO_FUNC_ARGS) { php_info_print_table_start(); if (ZCG(startup_ok) && ZCSG(accelerator_enabled)) { php_info_print_table_row(2, "Opcode Caching", "Up and Running"); } else { php_info_print_table_row(2, "Opcode Caching", "Disabled"); } if (ZCG(enabled) && ZCG(startup_ok) && ZCSG(accelerator_enabled) && ZCG(accel_directives).optimization_level) { php_info_print_table_row(2, "Optimization", "Enabled"); } else { php_info_print_table_row(2, "Optimization", "Disabled"); } if (!ZCG(startup_ok) || zps_api_failure_reason) { php_info_print_table_row(2, "Startup Failed", zps_api_failure_reason); } else { php_info_print_table_row(2, "Startup", "OK"); php_info_print_table_row(2, "Shared memory model", zend_accel_get_shared_model()); } php_info_print_table_end(); DISPLAY_INI_ENTRIES(); }
static PHP_MINFO_FUNCTION(hastur) { php_info_print_table_start(); php_info_print_table_row(2, "hastur", "enabled"); php_info_print_table_end(); }
PHPAPI void php_print_credits(int flag) /* {{{ */ { if (!sapi_module.phpinfo_as_text && flag & PHP_CREDITS_FULLPAGE) { php_print_info_htmlhead(); } if (!sapi_module.phpinfo_as_text) { PUTS("<h1>PHP Credits</h1>\n"); } else { PUTS("PHP Credits\n"); } if (flag & PHP_CREDITS_GROUP) { /* Group */ php_info_print_table_start(); php_info_print_table_header(1, "PHP Group"); php_info_print_table_row(1, "Thies C. Arntzen, Stig Bakken, Shane Caraveo, Andi Gutmans, Rasmus Lerdorf, Sam Ruby, Sascha Schumann, Zeev Suraski, Jim Winstead, Andrei Zmievski"); php_info_print_table_end(); } if (flag & PHP_CREDITS_GENERAL) { /* Design & Concept */ php_info_print_table_start(); if (!sapi_module.phpinfo_as_text) { php_info_print_table_header(1, "Language Design & Concept"); } else { php_info_print_table_header(1, "Language Design & Concept"); } php_info_print_table_row(1, "Andi Gutmans, Rasmus Lerdorf, Zeev Suraski, Marcus Boerger"); php_info_print_table_end(); /* PHP Language */ php_info_print_table_start(); php_info_print_table_colspan_header(2, "PHP Authors"); php_info_print_table_header(2, "Contribution", "Authors"); CREDIT_LINE("Zend Scripting Language Engine", "Andi Gutmans, Zeev Suraski, Stanislav Malyshev, Marcus Boerger, Dmitry Stogov, Xinchen Hui, Nikita Popov"); CREDIT_LINE("Extension Module API", "Andi Gutmans, Zeev Suraski, Andrei Zmievski"); CREDIT_LINE("UNIX Build and Modularization", "Stig Bakken, Sascha Schumann, Jani Taskinen"); CREDIT_LINE("Windows Support", "Shane Caraveo, Zeev Suraski, Wez Furlong, Pierre-Alain Joye, Anatol Belski, Kalle Sommer Nielsen"); CREDIT_LINE("Server API (SAPI) Abstraction Layer", "Andi Gutmans, Shane Caraveo, Zeev Suraski"); CREDIT_LINE("Streams Abstraction Layer", "Wez Furlong, Sara Golemon"); CREDIT_LINE("PHP Data Objects Layer", "Wez Furlong, Marcus Boerger, Sterling Hughes, George Schlossnagle, Ilia Alshanetsky"); CREDIT_LINE("Output Handler", "Zeev Suraski, Thies C. Arntzen, Marcus Boerger, Michael Wallner"); CREDIT_LINE("Consistent 64 bit support", "Anthony Ferrara, Anatol Belski"); php_info_print_table_end(); } if (flag & PHP_CREDITS_SAPI) { /* SAPI Modules */ php_info_print_table_start(); php_info_print_table_colspan_header(2, "SAPI Modules"); php_info_print_table_header(2, "Contribution", "Authors"); #include "credits_sapi.h" php_info_print_table_end(); } if (flag & PHP_CREDITS_MODULES) { /* Modules */ php_info_print_table_start(); php_info_print_table_colspan_header(2, "Module Authors"); php_info_print_table_header(2, "Module", "Authors"); #include "credits_ext.h" php_info_print_table_end(); } if (flag & PHP_CREDITS_DOCS) { php_info_print_table_start(); php_info_print_table_colspan_header(2, "PHP Documentation"); CREDIT_LINE("Authors", "Mehdi Achour, Friedhelm Betz, Antony Dovgal, Nuno Lopes, Hannes Magnusson, Philip Olson, Georg Richter, Damien Seguy, Jakub Vrana, Adam Harvey"); CREDIT_LINE("Editor", "Peter Cowburn"); CREDIT_LINE("User Note Maintainers", "Daniel P. Brown, Thiago Henrique Pojda"); CREDIT_LINE("Other Contributors", "Previously active authors, editors and other contributors are listed in the manual."); php_info_print_table_end(); } if (flag & PHP_CREDITS_QA) { php_info_print_table_start(); php_info_print_table_header(1, "PHP Quality Assurance Team"); php_info_print_table_row(1, "Ilia Alshanetsky, Joerg Behrens, Antony Dovgal, Stefan Esser, Moriyoshi Koizumi, Magnus Maatta, Sebastian Nohn, Derick Rethans, Melvyn Sopacua, Jani Taskinen, Pierre-Alain Joye, Dmitry Stogov, Felipe Pena, David Soria Parra, Stanislav Malyshev, Julien Pauli, Stephen Zarkos, Anatol Belski, Remi Collet, Ferenc Kovacs"); php_info_print_table_end(); } if (flag & PHP_CREDITS_WEB) { /* Websites and infrastructure */ php_info_print_table_start(); php_info_print_table_colspan_header(2, "Websites and Infrastructure team"); /* www., wiki., windows., master., and others, I guess pecl. too? */ CREDIT_LINE("PHP Websites Team", "Rasmus Lerdorf, Hannes Magnusson, Philip Olson, Lukas Kahwe Smith, Pierre-Alain Joye, Kalle Sommer Nielsen, Peter Cowburn, Adam Harvey, Ferenc Kovacs, Levi Morrison"); CREDIT_LINE("Event Maintainers", "Damien Seguy, Daniel P. Brown"); /* Mirroring */ CREDIT_LINE("Network Infrastructure", "Daniel P. Brown"); /* Windows build boxes and such things */ CREDIT_LINE("Windows Infrastructure", "Alex Schoenmaker"); php_info_print_table_end(); } if (!sapi_module.phpinfo_as_text && flag & PHP_CREDITS_FULLPAGE) { PUTS("</div></body></html>\n"); } }
/* {{{ PHP_MINFO_FUNCTION */ static PHP_MINFO_FUNCTION(posix) { php_info_print_table_start(); php_info_print_table_row(2, "Revision", "$Id: cdf1e2e6e4d14d21f5a7b729727e61704b962a90 $"); php_info_print_table_end(); }
/* {{{ PHP_MINFO_FUNCTION */ static PHP_MINFO_FUNCTION(ctype) { php_info_print_table_start(); php_info_print_table_row(2, "ctype functions", "enabled"); php_info_print_table_end(); }