void get_static_global_variables(Array &res) { DECLARE_GLOBAL_VARIABLES(g); Array static_global_variables; static_global_variables.set("gv_HTTP_RAW_POST_DATA", g->GV(HTTP_RAW_POST_DATA)); static_global_variables.set("gv__COOKIE", g->GV(_COOKIE)); static_global_variables.set("gv__ENV", g->GV(_ENV)); static_global_variables.set("gv__FILES", g->GV(_FILES)); static_global_variables.set("gv__GET", g->GV(_GET)); static_global_variables.set("gv__POST", g->GV(_POST)); static_global_variables.set("gv__REQUEST", g->GV(_REQUEST)); static_global_variables.set("gv__SERVER", g->GV(_SERVER)); static_global_variables.set("gv__SESSION", g->GV(_SESSION)); static_global_variables.set("gv__from", g->GV(_from)); static_global_variables.set("gv__smarty_tpl", g->GV(_smarty_tpl)); static_global_variables.set("gv__template", g->GV(_template)); static_global_variables.set("gv__tpl_stack", g->GV(_tpl_stack)); static_global_variables.set("gv_argc", g->GV(argc)); static_global_variables.set("gv_argv", g->GV(argv)); static_global_variables.set("gv_content", g->GV(content)); static_global_variables.set("gv_http_response_header", g->GV(http_response_header)); static_global_variables.set("gv_parameters", g->GV(parameters)); static_global_variables.set("gv_registeredAutoLoadFunctions", g->GV(registeredAutoLoadFunctions)); static_global_variables.set("gv_smarty", g->GV(smarty)); static_global_variables.set("gv_tmp", g->GV(tmp)); res.set("static_global_variables", static_global_variables); }
void get_redeclared_functions(Array &res) { DECLARE_GLOBAL_VARIABLES(g); Array redeclared_functions; redeclared_functions.set("cim_smarty_modifier_escape", (int64)g->cim_smarty_modifier_escape); redeclared_functions.set("fvf_1_df_lambda_1", (int64)g->fvf_1_df_lambda_1); redeclared_functions.set("fvf_1_df_lambda_2", (int64)g->fvf_1_df_lambda_2); redeclared_functions.set("fvf__smarty_regex_replace_check", (int64)g->fvf__smarty_regex_replace_check); redeclared_functions.set("fvf_mb_str_replace", (int64)g->fvf_mb_str_replace); redeclared_functions.set("fvf_smarty_block_php", (int64)g->fvf_smarty_block_php); redeclared_functions.set("fvf_smarty_block_textformat", (int64)g->fvf_smarty_block_textformat); redeclared_functions.set("fvf_smarty_function_counter", (int64)g->fvf_smarty_function_counter); redeclared_functions.set("fvf_smarty_function_cycle", (int64)g->fvf_smarty_function_cycle); redeclared_functions.set("fvf_smarty_function_escape_special_chars", (int64)g->fvf_smarty_function_escape_special_chars); redeclared_functions.set("fvf_smarty_function_fetch", (int64)g->fvf_smarty_function_fetch); redeclared_functions.set("fvf_smarty_function_html_checkboxes", (int64)g->fvf_smarty_function_html_checkboxes); redeclared_functions.set("fvf_smarty_function_html_checkboxes_output", (int64)g->fvf_smarty_function_html_checkboxes_output); redeclared_functions.set("fvf_smarty_function_html_image", (int64)g->fvf_smarty_function_html_image); redeclared_functions.set("fvf_smarty_function_html_options", (int64)g->fvf_smarty_function_html_options); redeclared_functions.set("fvf_smarty_function_html_options_optgroup", (int64)g->fvf_smarty_function_html_options_optgroup); redeclared_functions.set("fvf_smarty_function_html_options_optoutput", (int64)g->fvf_smarty_function_html_options_optoutput); redeclared_functions.set("fvf_smarty_function_html_radios", (int64)g->fvf_smarty_function_html_radios); redeclared_functions.set("fvf_smarty_function_html_radios_output", (int64)g->fvf_smarty_function_html_radios_output); redeclared_functions.set("fvf_smarty_function_html_select_date", (int64)g->fvf_smarty_function_html_select_date); redeclared_functions.set("fvf_smarty_function_html_select_time", (int64)g->fvf_smarty_function_html_select_time); redeclared_functions.set("fvf_smarty_function_html_table", (int64)g->fvf_smarty_function_html_table); redeclared_functions.set("fvf_smarty_function_html_table_cycle", (int64)g->fvf_smarty_function_html_table_cycle); redeclared_functions.set("fvf_smarty_function_mailto", (int64)g->fvf_smarty_function_mailto); redeclared_functions.set("fvf_smarty_function_math", (int64)g->fvf_smarty_function_math); redeclared_functions.set("fvf_smarty_make_timestamp", (int64)g->fvf_smarty_make_timestamp); redeclared_functions.set("fvf_smarty_mb_str_replace", (int64)g->fvf_smarty_mb_str_replace); redeclared_functions.set("fvf_smarty_modifier_capitalize", (int64)g->fvf_smarty_modifier_capitalize); redeclared_functions.set("fvf_smarty_modifier_date_format", (int64)g->fvf_smarty_modifier_date_format); redeclared_functions.set("fvf_smarty_modifier_debug_print_var", (int64)g->fvf_smarty_modifier_debug_print_var); redeclared_functions.set("fvf_smarty_modifier_escape", (int64)g->fvf_smarty_modifier_escape); redeclared_functions.set("fvf_smarty_modifier_regex_replace", (int64)g->fvf_smarty_modifier_regex_replace); redeclared_functions.set("fvf_smarty_modifier_replace", (int64)g->fvf_smarty_modifier_replace); redeclared_functions.set("fvf_smarty_modifier_spacify", (int64)g->fvf_smarty_modifier_spacify); redeclared_functions.set("fvf_smarty_modifier_truncate", (int64)g->fvf_smarty_modifier_truncate); redeclared_functions.set("fvf_smarty_modifiercompiler_cat", (int64)g->fvf_smarty_modifiercompiler_cat); redeclared_functions.set("fvf_smarty_modifiercompiler_count_characters", (int64)g->fvf_smarty_modifiercompiler_count_characters); redeclared_functions.set("fvf_smarty_modifiercompiler_count_paragraphs", (int64)g->fvf_smarty_modifiercompiler_count_paragraphs); redeclared_functions.set("fvf_smarty_modifiercompiler_count_sentences", (int64)g->fvf_smarty_modifiercompiler_count_sentences); redeclared_functions.set("fvf_smarty_modifiercompiler_count_words", (int64)g->fvf_smarty_modifiercompiler_count_words); redeclared_functions.set("fvf_smarty_modifiercompiler_default", (int64)g->fvf_smarty_modifiercompiler_default); redeclared_functions.set("fvf_smarty_modifiercompiler_indent", (int64)g->fvf_smarty_modifiercompiler_indent); redeclared_functions.set("fvf_smarty_modifiercompiler_lower", (int64)g->fvf_smarty_modifiercompiler_lower); redeclared_functions.set("fvf_smarty_modifiercompiler_noprint", (int64)g->fvf_smarty_modifiercompiler_noprint); redeclared_functions.set("fvf_smarty_modifiercompiler_string_format", (int64)g->fvf_smarty_modifiercompiler_string_format); redeclared_functions.set("fvf_smarty_modifiercompiler_strip", (int64)g->fvf_smarty_modifiercompiler_strip); redeclared_functions.set("fvf_smarty_modifiercompiler_strip_tags", (int64)g->fvf_smarty_modifiercompiler_strip_tags); redeclared_functions.set("fvf_smarty_modifiercompiler_upper", (int64)g->fvf_smarty_modifiercompiler_upper); redeclared_functions.set("fvf_smarty_modifiercompiler_wordwrap", (int64)g->fvf_smarty_modifiercompiler_wordwrap); redeclared_functions.set("fvf_smarty_outputfilter_trimwhitespace", (int64)g->fvf_smarty_outputfilter_trimwhitespace); redeclared_functions.set("fvf_smarty_outputfilter_trimwhitespace_replace", (int64)g->fvf_smarty_outputfilter_trimwhitespace_replace); redeclared_functions.set("fvf_smarty_variablefilter_htmlspecialchars", (int64)g->fvf_smarty_variablefilter_htmlspecialchars); redeclared_functions.set("fvf_smartyautoload", (int64)g->fvf_smartyautoload); res.set("redeclared_functions", redeclared_functions); }
static void get_static_global_variables(Array &res) { DECLARE_GLOBAL_VARIABLES(g); Array static_global_variables; static_global_variables.set("gv_argc", g->GV(argc)); static_global_variables.set("gv_argv", g->GV(argv)); static_global_variables.set("gv__SERVER", g->GV(_SERVER)); static_global_variables.set("gv__GET", g->GV(_GET)); static_global_variables.set("gv__POST", g->GV(_POST)); static_global_variables.set("gv__COOKIE", g->GV(_COOKIE)); static_global_variables.set("gv__FILES", g->GV(_FILES)); static_global_variables.set("gv__ENV", g->GV(_ENV)); static_global_variables.set("gv__REQUEST", g->GV(_REQUEST)); static_global_variables.set("gv__SESSION", g->GV(_SESSION)); static_global_variables.set("gv_HTTP_RAW_POST_DATA", g->GV(HTTP_RAW_POST_DATA)); static_global_variables.set("gv_http_response_header", g->GV(http_response_header)); res.set("static_global_variables", static_global_variables); }
bool get_call_info_no_eval(const CallInfo *&ci, void *&extra, const char *s, int64 hash) { DECLARE_GLOBAL_VARIABLES(g); extra = NULL; if (hash < 0) hash = hash_string(s); const hashNodeFunc *p = findFunc(s, hash); if (LIKELY(p!=0)) { if (UNLIKELY(p->offset)) { const char *addr = (const char *)g + (int64)p->data; ci = *(const CallInfo **)addr; return ci != 0; } else { ci = (const CallInfo *)p->data; return true; } } return get_call_info_builtin(ci, extra, s, hash); }
static void get_redeclared_classes(Array &res) { DECLARE_GLOBAL_VARIABLES(g); Array redeclared_classes; res.set("redeclared_classes", redeclared_classes); }
static void get_redeclared_functions(Array &res) { DECLARE_GLOBAL_VARIABLES(g); Array redeclared_functions; res.set("redeclared_functions", redeclared_functions); }
static void get_pseudomain_variables(Array &res) { DECLARE_GLOBAL_VARIABLES(g); Array pseudomain_variables; pseudomain_variables.set("run_pm_php$echo_php", g->run_pm_php$echo_php); res.set("pseudomain_variables", pseudomain_variables); }
static void get_dynamic_constants(Array &res) { DECLARE_GLOBAL_VARIABLES(g); Array dynamic_constants; dynamic_constants.set("k_SID", g->k_SID); res.set("dynamic_constants", dynamic_constants); }
static void get_class_static_variables(Array &res) { DECLARE_GLOBAL_VARIABLES(g); Array class_static_variables; res.set("class_static_variables", class_static_variables); }
static void get_method_static_inited(Array &res) { DECLARE_GLOBAL_VARIABLES(g); Array method_static_inited; res.set("method_static_inited", method_static_inited); }
static void get_method_static_variables(Array &res) { DECLARE_GLOBAL_VARIABLES(g); Array method_static_variables; res.set("method_static_variables", method_static_variables); }
static void get_dynamic_global_variables(Array &res) { DECLARE_GLOBAL_VARIABLES(g); Array dynamic_global_variables; dynamic_global_variables = *get_variable_table(); res.set("dynamic_global_variables", dynamic_global_variables); }
Variant get_constant(CStrRef name, bool error) { DECLARE_GLOBAL_VARIABLES(g); return get_builtin_constant(name, error); }