sas             Wed Dec  4 08:10:23 2002 EDT

  Modified files:              
    /php4/ext/ircg      ircg.c 
  Log:
  display data from IRCG's logging subsystem
  
  
Index: php4/ext/ircg/ircg.c
diff -u php4/ext/ircg/ircg.c:1.154 php4/ext/ircg/ircg.c:1.155
--- php4/ext/ircg/ircg.c:1.154  Wed Dec  4 04:53:20 2002
+++ php4/ext/ircg/ircg.c        Wed Dec  4 08:10:23 2002
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: ircg.c,v 1.154 2002/12/04 09:53:20 sas Exp $ */
+/* $Id: ircg.c,v 1.155 2002/12/04 13:10:23 sas Exp $ */
 
 /* {{{ includes */
 
@@ -2198,11 +2198,20 @@
 }
 /* }}} */
 
+#if IRCG_API_VERSION >= 20021127
+#include <ircg_log.h>
+#endif
+
 /* {{{ PHP_MINFO_FUNCTION
  */
 PHP_MINFO_FUNCTION(ircg)
 {
        char buf[100];
+#if IRCG_API_VERSION >= 20021127
+       int i;
+       const char *name;
+       ircg_log_int val;
+#endif
 
        php_info_print_table_start();
        php_info_print_table_header(2, "ircg support", "enabled");
@@ -2224,6 +2233,17 @@
        php_info_print_table_row(2, "Failed persistent HTTP connections", buf);
        sprintf(buf, "%lu", php_ircg->irc_wbuf_destructs);
        php_info_print_table_row(2, "Write buffer destructs", buf);
+
+#if IRCG_API_VERSION >= 20021127
+
+       for (i = 0; i < IRCG_LOG_CNT_NR; i++) {
+               ircg_log_get(i, &val, &name);
+               sprintf(buf, IRCG_LOG_INT_FMT, val);
+               php_info_print_table_row(2, name, buf);
+       }
+
+#endif
+       
        php_info_print_table_end();
 }
 /* }}} */



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to