--- parser3/src/main/pa_request.C 2003/02/17 11:42:32 1.245.2.22 +++ parser3/src/main/pa_request.C 2003/02/17 16:44:57 1.245.2.24 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_REQUEST_C="$Date: 2003/02/17 11:42:32 $"; +static const char* IDENT_REQUEST_C="$Date: 2003/02/17 16:44:57 $"; #include "pa_sapi.h" #include "pa_common.h" @@ -109,6 +109,9 @@ Request::Request(Pool& apool, SAPI_Info& response(new VResponse(fpool, arequest_info, charsets)), cookie(new VCookie), + // private + configure_admin_done(false), + // private defaults fdefault_lang(adefault_lang), // private mime types @@ -122,7 +125,7 @@ Request::Request(Pool& apool, SAPI_Info& classes().put(main_class->name(), main_class); // classes: // table, file, random, mail, image, ... - methoded_array.register_directly_used(*this); + methoded_array().register_directly_used(*this); /// methodless // env class @@ -196,7 +199,7 @@ void Request::configure_admin(VStateless // configure method_frame options // until someone with less privileges have overriden them - methoded_array.configure_admin(*this); + methoded_array().configure_admin(*this); } /** @@ -271,7 +274,7 @@ gettimeofday(&mt[0],NULL); configure_admin(*main_class, StringPtr(0)); // configure not-method_frame=user options - methoded_array.configure_user(*this); + methoded_array().configure_user(*this); // $MAIN:MIME-TYPES if(ValuePtr element=main_class->get_element(mime_types_name, *main_class, false)) @@ -311,7 +314,7 @@ gettimeofday(&mt[2],NULL); if(const Method *method=junction->method) { // preparing to pass parameters to // @postprocess[data] - VMethodFrame frame(pool(), method->name, *junction, 0/*no parent*/); + VMethodFrame frame(pool(), method->name, *junction, 0/*no parent*/); frame.ref(); frame.set_self(main_class); frame.store_param(body_vstring_before_post_process); @@ -409,13 +412,13 @@ t[9]-t[3] if(const Method *method=junction->method) { // preparing to pass parameters to // @unhandled_exception[exception;stack] - VMethodFrame frame(pool(), method->name, *junction, 0/*no caller*/); + VMethodFrame frame(pool(), method->name, *junction, 0/*no caller*/); frame.ref(); frame.set_self(main_class); // $exception frame.store_param(exception2vhash(pool(), e)); // $stack[^table::set{name origin}] - Table::columns_type stack_trace_columns; + Table::columns_type stack_trace_columns(new ArrayString); *stack_trace_columns+=StringPtr(new String("name")); *stack_trace_columns+=StringPtr(new String("file")); *stack_trace_columns+=StringPtr(new String("lineno"));