Menu

Diff of /trunk/php-java-bridge/java.c [r149] .. [r150]  Maximize  Restore

Switch to side-by-side view

--- a/trunk/php-java-bridge/java.c
+++ b/trunk/php-java-bridge/java.c
@@ -931,7 +931,7 @@
 PHP_MINFO_FUNCTION(java)
 {
   char*s=java_get_server_string();
-  int status = java_test_server();
+  char*server = java_test_server(0);
   
   php_info_print_table_start();
   php_info_print_table_row(2, "java support", "Enabled");
@@ -945,12 +945,13 @@
   else
 	php_info_print_table_row(2, "java.log_file", cfg->logFile);
   php_info_print_table_row(2, "java.log_level", cfg->logLevel);
-  php_info_print_table_row(2, "java.sockname", cfg->sockname);
   php_info_print_table_row(2, "java.hosts", cfg->hosts);
   php_info_print_table_row(2, "java command", s);
-  php_info_print_table_row(2, "java status", (status==SUCCESS)?"running":"not running");
+  php_info_print_table_row(2, "java status", server?"running":"not running");
+  php_info_print_table_row(2, "java server", server?server:"localhost");
   php_info_print_table_end();
   
+  free(server);
   free(s);
 }
 
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.