Lines Matching refs:sn

95 	Session	*sn;  member
224 typedef int (*nsapi_servact_prototype)(Session *sn, Request *rq);
369 rv = (*nsapi_servact_uri2path)(rc->sn, rq); in PHP_FUNCTION()
374 rv = (*nsapi_servact_pathchecks)(rc->sn, rq); in PHP_FUNCTION()
379 rv = (*nsapi_servact_fileinfo)(rc->sn, rq); in PHP_FUNCTION()
384 rv = (*nsapi_servact_service)(rc->sn, rq); in PHP_FUNCTION()
462 retval = net_write(rc->sn->csd, (char *)str, str_length); in sapi_nsapi_ub_write()
486 if (net_flush(rc->sn->csd) < 0) { in sapi_nsapi_flush()
499 header_name = pool_strdup(rc->sn->pool, sapi_header->header); in php_nsapi_remove_header()
513 pool_free(rc->sn->pool, header_name); in php_nsapi_remove_header()
537 header_name = pool_strdup(rc->sn->pool, sapi_header->header); in sapi_nsapi_header_handler()
560 pool_free(rc->sn->pool, header_name); in sapi_nsapi_header_handler()
581 protocol_status(rc->sn, rc->rq, SG(sapi_headers).http_response_code, NULL); in sapi_nsapi_send_headers()
582 retval = protocol_start_response(rc->sn, rc->rq); in sapi_nsapi_send_headers()
597 netbuf *nbuf = rc->sn->inbuf; in sapi_nsapi_read_post()
632 length = net_read(rc->sn->csd, read_ptr, bytes_to_read, NSAPI_G(read_timeout)); in sapi_nsapi_read_post()
706 value = pblock_findval(nsapi_client[i].nsapi_eq, rc->sn->client); in sapi_nsapi_register_server_variables()
712 if (value = session_dns(rc->sn)) { in sapi_nsapi_register_server_variables()
721 value = http_uri2url_dynamic("", "", rc->sn, rc->rq); in sapi_nsapi_register_server_variables()
732 if (value = request_translate_uri("/", rc->sn)) { in sapi_nsapi_register_server_variables()
740 if (value = request_translate_uri(rc->path_info, rc->sn)) { in sapi_nsapi_register_server_variables()
783 log_error(LOG_INFORM, pblock_findval("fn", rc->pb), rc->sn, rc->rq, "%s", message); in nsapi_log_message()
864 …log_error(LOG_WARN, pblock_findval("fn", NSG(pb)), NSG(sn), NSG(rq), "Cannot change php.ini key \"… in nsapi_php_ini_entries()
906 int NSAPI_PUBLIC php5_init(pblock *pb, Session *sn, Request *rq) in php5_init() argument
940 …log_error(LOG_INFORM, pblock_findval("fn", pb), sn, rq, "Initialized PHP Module (%d threads expect… in php5_init()
959 int NSAPI_PUBLIC php5_execute(pblock *pb, Session *sn, Request *rq) in php5_execute() argument
988 log_error(LOG_WARN, pblock_findval("fn", pb), sn, rq, "Missing 'script' parameter"); in php5_execute()
1000 …log_error(LOG_WARN, pblock_findval("fn", pb), sn, rq, "Cannot make nesting PHP requests with nsapi… in php5_execute()
1004 protocol_status(sn, rq, 500, NULL); in php5_execute()
1009 request_context = (nsapi_request_context *)pool_malloc(sn->pool, sizeof(nsapi_request_context)); in php5_execute()
1011 …log_error(LOG_CATASTROPHE, pblock_findval("fn", pb), sn, rq, "Insufficient memory to process PHP r… in php5_execute()
1015 request_context->sn = sn; in php5_execute()
1048 log_error(LOG_WARN, pblock_findval("fn", pb), sn, rq, "Cannot prepare PHP engine!"); in php5_execute()
1052 protocol_status(sn, rq, 500, NULL); in php5_execute()
1058 …log_error(LOG_WARN, pblock_findval("fn", pb), sn, rq, "Cannot execute PHP script: %s (File not fou… in php5_execute()
1062 protocol_status(sn, rq, 404, NULL); in php5_execute()
1067 pool_free(sn->pool, request_context); in php5_execute()
1088 int NSAPI_PUBLIC php5_auth_trans(pblock * pb, Session * sn, Request * rq) in php5_auth_trans() argument