cvs: /php4/sapi/roxen roxen.c
| From: | David Hedbor | Date: | Wed, 24 Nov 1999 07:28:48 +0000 |
| Subject: | cvs: /php4/sapi/roxen roxen.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-6830@lists.php.net to get a copy of this message | ||
neotron Wed Nov 24 02:28:48 1999 EDT
Modified files:
/php4/sapi/roxen roxen.c
Log:
Removed some forgotten C++ style comments
Index: php4/sapi/roxen/roxen.c
diff -u php4/sapi/roxen/roxen.c:1.2 php4/sapi/roxen/roxen.c:1.3
--- php4/sapi/roxen/roxen.c:1.2 Tue Nov 23 21:36:39 1999
+++ php4/sapi/roxen/roxen.c Wed Nov 24 02:28:17 1999
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: roxen.c,v 1.2 1999/11/24 02:36:39 neotron Exp $ */
+/* $Id: roxen.c,v 1.3 1999/11/24 07:28:17 neotron Exp $ */
#include "php.h"
#ifdef HAVE_ROXEN
@@ -112,7 +112,7 @@
} while(0)
/* Toggle debug printouts, for now... */
-//#define MUCH_DEBUG
+/* #define MUCH_DEBUG */
#ifndef MUCH_DEBUG
void no_fprintf(){}
#define fprintf no_fprintf
@@ -204,7 +204,6 @@
safe_apply(MY_FD, "write", 1);
if(sp[-1].type == PIKE_T_INT)
sent_bytes = sp[-1].u.integer;
- //free_string(to_write);
pop_stack();
if(sent_bytes != str_length) {
/* This means the connection is closed. Dead. Gone. *sniff* */
@@ -376,10 +375,9 @@
static void php_info_roxen(ZEND_MODULE_INFO_FUNC_ARGS)
{
char buf[512];
- // int uptime = Ns_InfoUptime();
PUTS("<table border=5 width=600>\n");
- php_info_print_table_row(2, "SAPI module version", "$Id: roxen.c,v 1.2 1999/11/24
02:36:39 neotron Exp $");
+ php_info_print_table_row(2, "SAPI module version", "$Id: roxen.c,v 1.3 1999/11/24
07:28:17 neotron Exp $");
/* 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());
@@ -495,12 +493,14 @@
free_array(indices);
}
- // MAKE_STD_ZVAL(pval);
- // pval->type = IS_LONG;
- // pval->value.lval = Ns_InfoBootTime();
- // zend_hash_update(&EG(symbol_table), "SERVER_BOOTTIME",
sizeof("SERVER_BOOTTIME"), &pval, sizeof(zval *), NULL);
+ /*
+ MAKE_STD_ZVAL(pval);
+ pval->type = IS_LONG;
+ pval->value.lval = Ns_InfoBootTime();
+ zend_hash_update(&EG(symbol_table), "SERVER_BOOTTIME",
sizeof("SERVER_BOOTTIME"), &pval, sizeof(zval *), NULL);
- // fprintf(stderr, "Set up header environment.\n");
+ fprintf(stderr, "Set up header environment.\n");
+ */
}
/*
@@ -553,7 +553,7 @@
current_thread = th_self();
GET_THIS();
SG(request_info).query_string = lookup_string_header("QUERY_STRING", 0);;
- SG(server_context) = (void *)1; // avoid server_context == NULL
+ SG(server_context) = (void *)1; /* avoid server_context == NULL */
/* path_translated is the absolute path to the file */
SG(request_info).path_translated =
lookup_string_header("PATH_TRANSLATED", NULL);
@@ -601,11 +601,6 @@
pike_add_function("run", f_php_roxen_request_handler,
"function(string,mapping,object,function:int)", 0);
add_program_constant("Interpretor", (php_program = end_program()), 0);
-
- /* TSRM is used to allocate a per-thread structure */
- /* read the configuration */
- //php_roxen_config(ctx);
-
}
/*