cvs: /php4/sapi/nsapi aolserver.c

From: Date: Thu, 07 Oct 1999 12:01:05 +0000
Subject: cvs: /php4/sapi/nsapi aolserver.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-5272@lists.php.net to get a copy of this message
sas Thu Oct 7 08:01:05 1999 EDT Modified files: /php4/sapi/nsapi aolserver.c Log: (php_ns_request_handler): call ts_free_thread() to clean up Index: php4/sapi/nsapi/aolserver.c diff -u php4/sapi/nsapi/aolserver.c:1.2 php4/sapi/nsapi/aolserver.c:1.3 --- php4/sapi/nsapi/aolserver.c:1.2 Mon Oct 4 10:29:18 1999 +++ php4/sapi/nsapi/aolserver.c Thu Oct 7 08:00:32 1999 @@ -16,8 +16,14 @@ +----------------------------------------------------------------------+ */ -/* $Id: aolserver.c,v 1.2 1999/10/04 14:29:18 sas Exp $ */ +/* + * TODO: + * - fix (?) POST handler (maybe AOLserver bug) + * - write documentation + */ +/* $Id: aolserver.c,v 1.3 1999/10/07 12:00:32 sas Exp $ */ + /* conflict between PHP and AOLserver */ #define Debug php_Debug #include "php.h" @@ -174,16 +180,18 @@ char *key = Ns_SetKey(NSG(conn->headers), i); char *value = Ns_SetValue(NSG(conn->headers), i); char *p; + char c; zval *pval; char buf[512]; int buf_len; buf_len = snprintf(buf, 511, "HTTP_%s", key); - for(p = buf; *p; p++) { - *p = toupper(*p); - if(*p < 'A' || *p > 'Z') { - *p = '_'; + for(p = buf; (c = *p); p++) { + c = toupper(c); + if(c < 'A' || c > 'Z') { + c = '_'; } + *p = c; } MAKE_STD_ZVAL(pval); @@ -261,6 +269,8 @@ status = php_ns_module_main(NSLS_C SLS_CC); php_ns_request_dtor(NSLS_C SLS_CC); + + ts_free_thread(); return status; }

« previous php.version4 (#5272) next »