+----------------------------------------------------------------------+
*/
+/*
+ * TODO:
+ * - fix (?) POST handler (maybe AOLserver bug)
+ * - write documentation
+ */
+
/* $Id$ */
/* conflict between PHP and AOLserver */
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);
status = php_ns_module_main(NSLS_C SLS_CC);
php_ns_request_dtor(NSLS_C SLS_CC);
+
+ ts_free_thread();
return status;
}
+----------------------------------------------------------------------+
*/
+/*
+ * TODO:
+ * - fix (?) POST handler (maybe AOLserver bug)
+ * - write documentation
+ */
+
/* $Id$ */
/* conflict between PHP and AOLserver */
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);
status = php_ns_module_main(NSLS_C SLS_CC);
php_ns_request_dtor(NSLS_C SLS_CC);
+
+ ts_free_thread();
return status;
}