Lines Matching refs:ctx
82 static void php_ns_config(php_ns_context *ctx, char global);
519 php_ns_config(php_ns_context *ctx, char global) in php_ns_config() argument
525 path = Ns_ConfigGetPath(ctx->ns_server, ctx->ns_module, NULL); in php_ns_config()
534 Ns_RegisterRequest(ctx->ns_server, "GET", value, php_ns_request_handler, NULL, ctx, 0); in php_ns_config()
535 Ns_RegisterRequest(ctx->ns_server, "POST", value, php_ns_request_handler, NULL, ctx, 0); in php_ns_config()
536 Ns_RegisterRequest(ctx->ns_server, "HEAD", value, php_ns_request_handler, NULL, ctx, 0); in php_ns_config()
579 php_ns_context *ctx = (php_ns_context *) context; in php_ns_server_shutdown() local
581 ctx->sapi_module->shutdown(ctx->sapi_module); in php_ns_server_shutdown()
585 free(ctx->ns_module); in php_ns_server_shutdown()
586 free(ctx->ns_server); in php_ns_server_shutdown()
587 free(ctx); in php_ns_server_shutdown()
599 php_ns_context *ctx; in Ns_ModuleInit() local
609 ctx = malloc(sizeof *ctx); in Ns_ModuleInit()
610 ctx->sapi_module = &aolserver_sapi_module; in Ns_ModuleInit()
611 ctx->ns_server = strdup(server); in Ns_ModuleInit()
612 ctx->ns_module = strdup(module); in Ns_ModuleInit()
615 php_ns_config(ctx, 1); in Ns_ModuleInit()
617 global_context = ctx; in Ns_ModuleInit()
620 Ns_RegisterServerShutdown(server, php_ns_server_shutdown, ctx); in Ns_ModuleInit()