Home
last modified time | relevance | path

Searched refs:CG (Results 1 – 25 of 44) sorted by relevance

12

/PHP-5.4/Zend/
H A Dzend_string.c51 CG(interned_strings_top) = CG(interned_strings_start); in zend_interned_strings_init()
52 CG(interned_strings_snapshot_top) = CG(interned_strings_start); in zend_interned_strings_init()
53 CG(interned_strings_end) = CG(interned_strings_start) + size; in zend_interned_strings_init()
57 CG(interned_strings).nTableMask = CG(interned_strings).nTableSize - 1; in zend_interned_strings_init()
61 …mprotect(CG(interned_strings_start), CG(interned_strings_end) - CG(interned_strings_start), PROT_R… in zend_interned_strings_init()
75 …mprotect(CG(interned_strings_start), CG(interned_strings_end) - CG(interned_strings_start), PROT_W… in zend_interned_strings_dtor()
118 …mprotect(CG(interned_strings_start), CG(interned_strings_end) - CG(interned_strings_start), PROT_R… in zend_new_interned_string_int()
171 …mprotect(CG(interned_strings_start), CG(interned_strings_end) - CG(interned_strings_start), PROT_R… in zend_new_interned_string_int()
182 CG(interned_strings_snapshot_top) = CG(interned_strings_top); in zend_interned_strings_snapshot_int()
192 CG(interned_strings_top) = CG(interned_strings_snapshot_top); in zend_interned_strings_restore_int()
[all …]
H A Dzend_compile.c222 memset(&CG(context), 0, sizeof(CG(context))); in init_compiler()
1085CG(context).current_brk_cont = CG(active_op_array)->brk_cont_array[CG(context).current_brk_cont].p… in do_end_loop()
1582 zend_stack_push(&CG(context_stack), (void *) &CG(context), sizeof(CG(context))); in zend_do_begin_function_declaration()
1713 zend_stack_push(&CG(context_stack), (void *) &CG(context), sizeof(CG(context))); in zend_do_begin_function_declaration()
1748 CG(active_op_array)->doc_comment = CG(doc_comment); in zend_do_begin_function_declaration()
1749 CG(active_op_array)->doc_comment_len = CG(doc_comment_len); in zend_do_begin_function_declaration()
2158 } else if (CG(current_import) || CG(current_namespace)) { in zend_resolve_class_name()
4673CG(active_op_array)->brk_cont_array[CG(context).current_brk_cont].cont = CG(active_op_array)->brk_… in zend_do_switch_end()
5242 if (CG(has_bracketed_namespaces) && CG(in_namespace)) { in zend_do_halt_compiler_register()
6718 } else if (CG(current_namespace) || CG(in_namespace)) { in zend_do_begin_namespace()
[all …]
H A Dzend_language_scanner.l180 CG(parse_error) = 0; in startup_scanner()
181 CG(heredoc) = NULL; in startup_scanner()
182 CG(heredoc_len) = 0; in startup_scanner()
190 if (CG(heredoc)) { in shutdown_scanner()
192 CG(heredoc_len)=0; in shutdown_scanner()
254 if (CG(heredoc)) { in zend_restore_lexical_state()
421 if (!CG(script_encoding_list) || !CG(script_encoding_list_size)) { in zend_multibyte_find_script_encoding()
537 CG(zend_lineno) = CG(start_lineno); in open_file_for_scanning()
583 zend_stack_push(&CG(context_stack), (void *) &CG(context), sizeof(CG(context))); in END_EXTERN_C()
754 zend_stack_push(&CG(context_stack), (void *) &CG(context), sizeof(CG(context))); in compile_string()
[all …]
H A Dzend.c90 if (!CG(multibyte)) { in ZEND_INI_MH()
474 CG(asp_tags) = asp_tags_default; in zend_set_default_compile_time_values()
519 CG(interactive) = 0; in compiler_globals_ctor()
786 asp_tags_default = CG(asp_tags); in zend_post_startup()
883 CG(unclean_shutdown) = 1; in BEGIN_EXTERN_C()
884 CG(active_class_entry) = NULL; in BEGIN_EXTERN_C()
1003 if (CG(stack).top) { \
1005 CG(stack).top = CG(stack).max = 0; \
1006 CG(stack).elements = NULL; \
1208 CG(in_compilation) = 0; in zend_error()
[all …]
H A Dzend_opcode.c55 if (CG(interactive)) { in init_op_array()
93 op_array->fn_flags = CG(interactive)?ZEND_ACC_INTERACTIVE:0; in init_op_array()
414 op->lineno = CG(zend_lineno); in init_op()
423 if (next_op_num >= CG(context).opcodes_size) { in get_next_op()
430 CG(context).opcodes_size *= 4; in get_next_op()
431 op_array_alloc_ops(op_array, CG(context).opcodes_size); in get_next_op()
490 if (CG(compiler_options) & ZEND_COMPILE_EXTENDED_INFO) { in pass_two()
493 if (CG(compiler_options) & ZEND_COMPILE_HANDLE_OP_ARRAY) { in pass_two()
499 CG(context).vars_size = op_array->last_var; in pass_two()
503 CG(context).opcodes_size = op_array->last; in pass_two()
[all …]
H A Dzend_string.h38 (((s) >= CG(interned_strings_start)) && ((s) < CG(interned_strings_end)))
H A Dzend_language_scanner.c182 CG(parse_error) = 0; in startup_scanner()
183 CG(heredoc) = NULL; in startup_scanner()
184 CG(heredoc_len) = 0; in startup_scanner()
192 if (CG(heredoc)) { in shutdown_scanner()
194 CG(heredoc_len)=0; in shutdown_scanner()
256 if (CG(heredoc)) { in zend_restore_lexical_state()
423 if (!CG(script_encoding_list) || !CG(script_encoding_list_size)) { in zend_multibyte_find_script_encoding()
539 CG(zend_lineno) = CG(start_lineno); in open_file_for_scanning()
585 zend_stack_push(&CG(context_stack), (void *) &CG(context), sizeof(CG(context))); in END_EXTERN_C()
756 zend_stack_push(&CG(context_stack), (void *) &CG(context), sizeof(CG(context))); in compile_string()
[all …]
H A Dzend_ini_parser.y43 #define ZEND_INI_PARSER_CB (CG(ini_parser_param))->ini_parser_cb
44 #define ZEND_INI_PARSER_ARG (CG(ini_parser_param))->arg
177 if (CG(ini_parser_unbuffered_errors)) { in ini_error()
199 CG(ini_parser_param) = &ini_parser_param; in zend_parse_ini_file()
205 CG(ini_parser_unbuffered_errors) = unbuffered_errors; in zend_parse_ini_file()
228 CG(ini_parser_param) = &ini_parser_param; in zend_parse_ini_string()
234 CG(ini_parser_unbuffered_errors) = unbuffered_errors; in zend_parse_ini_string()
H A Dzend_multibyte.c170 if (CG(script_encoding_list)) { in zend_multibyte_set_script_encoding()
171 free(CG(script_encoding_list)); in zend_multibyte_set_script_encoding()
173 CG(script_encoding_list) = encoding_list; in zend_multibyte_set_script_encoding()
174 CG(script_encoding_list_size) = encoding_list_size; in zend_multibyte_set_script_encoding()
H A Dzend_globals_macros.h34 # define CG(v) TSRMG(compiler_globals_id, zend_compiler_globals *, v) macro
37 # define CG(v) (compiler_globals.v)
H A Dzend_execute_API.c150 EG(function_table) = CG(function_table); in init_executor()
151 EG(class_table) = CG(class_table); in init_executor()
1202 CG(interactive) = 0; in zend_eval_stringl()
1212 CG(interactive) = orig_interactive; in zend_eval_stringl()
1274 || CG(context).backpatch_count>0 in execute_new_code()
1275 || CG(active_op_array)->function_name in execute_new_code()
1291 end=CG(active_op_array)->opcodes+CG(active_op_array)->last; in execute_new_code()
1326 orig_interactive = CG(interactive); in execute_new_code()
1327 CG(interactive) = 0; in execute_new_code()
1329 CG(interactive) = orig_interactive; in execute_new_code()
[all …]
H A Dzend_language_parser.y391 T_CLASS { $$.u.op.opline_num = CG(zend_lineno); $$.EA = 0; }
393 | T_TRAIT { $$.u.op.opline_num = CG(zend_lineno); $$.EA = ZEND_ACC_TRAIT; }
394 | T_FINAL T_CLASS { $$.u.op.opline_num = CG(zend_lineno); $$.EA = ZEND_ACC_FINAL_CLASS; }
403 T_INTERFACE { $$.u.op.opline_num = CG(zend_lineno); $$.EA = ZEND_ACC_INTERFACE; }
674 | T_VARIABLE { zend_do_declare_property(&$1, NULL, CG(access_type) TSRMLS_CC); }
805 T_FUNCTION { $$.u.op.opline_num = CG(zend_lineno); }
916 …EDOC T_ENCAPSED_AND_WHITESPACE T_END_HEREDOC { $$ = $2; CG(heredoc) = Z_STRVAL($1.u.constant); CG(…
917 …nt); INIT_PZVAL(&$$.u.constant); $$.op_type = IS_CONST; CG(heredoc) = Z_STRVAL($1.u.constant); CG(…
946 …| T_START_HEREDOC encaps_list T_END_HEREDOC { $$ = $2; CG(heredoc) = Z_STRVAL($1.u.constant); CG(h…
1187 if (CG(parse_error) == 0) {
[all …]
H A Dzend_compile.h39 #define INC_BPC(op_array) if (op_array->fn_flags & ZEND_ACC_INTERACTIVE) { (CG(context).backpatch_c…
40 #define DEC_BPC(op_array) if (op_array->fn_flags & ZEND_ACC_INTERACTIVE) { (CG(context).backpatch_c…
41 #define HANDLE_INTERACTIVE() if (CG(active_op_array)->fn_flags & ZEND_ACC_INTERACTIVE) { execute_n…
42 #define DO_TICKS() if (Z_LVAL(CG(declarables).ticks)) { zend_do_ticks(TSRMLS_C); }
46 if (CG(doc_comment)) { \
47 efree(CG(doc_comment)); \
48 CG(doc_comment) = NULL; \
50 CG(doc_comment_len) = 0; \
H A Dzend_API.c1029 zend_class_entry **scope = EG(in_execution)?&EG(scope):&CG(active_class_entry); in zval_update_class_constant()
1063 zend_class_entry **scope = EG(in_execution)?&EG(scope):&CG(active_class_entry); in zend_update_class_constants()
1793 for (zend_hash_internal_pointer_reset_ex(CG(class_table), &pos); in zend_collect_module_handlers()
1794 zend_hash_get_current_data_ex(CG(class_table), (void *) &pce, &pos) == SUCCESS; in zend_collect_module_handlers()
1795 zend_hash_move_forward_ex(CG(class_table), &pos)) { in zend_collect_module_handlers()
1808 for (zend_hash_internal_pointer_reset_ex(CG(class_table), &pos); in zend_collect_module_handlers()
1809 zend_hash_get_current_data_ex(CG(class_table), (void *) &pce, &pos) == SUCCESS; in zend_collect_module_handlers()
1810 zend_hash_move_forward_ex(CG(class_table), &pos)) { in zend_collect_module_handlers()
1985 target_function_table = CG(function_table); in zend_register_functions()
2232 target_function_table = CG(function_table); in zend_unregister_functions()
[all …]
/PHP-5.4/ext/tokenizer/
H A Dtokenizer.c121 CG(zend_lineno)++; in tokenize()
137 if (CG(increment_lineno)) { in tokenize()
138 token_line = ++CG(zend_lineno); in tokenize()
139 CG(increment_lineno) = 0; in tokenize()
177 token_line = CG(zend_lineno); in tokenize()
/PHP-5.4/sapi/milter/
H A Dphp_milter.c156 status = call_user_function(CG(function_table), NULL, &function_name, &retval, 0, NULL TSRMLS_CC); in ZEND_DECLARE_MODULE_GLOBALS()
227 status = call_user_function(CG(function_table), NULL, &function_name, &retval, 1, param TSRMLS_CC); in mlfi_connect()
261 status = call_user_function(CG(function_table), NULL, &function_name, &retval, 1, param TSRMLS_CC); in mlfi_helo()
301 status = call_user_function(CG(function_table), NULL, &function_name, &retval, 1, param TSRMLS_CC); in mlfi_envfrom()
341 status = call_user_function(CG(function_table), NULL, &function_name, &retval, 1, param TSRMLS_CC); in mlfi_envrcpt()
412 status = call_user_function(CG(function_table), NULL, &function_name, &retval, 0, NULL TSRMLS_CC); in mlfi_eoh()
477 status = call_user_function(CG(function_table), NULL, &function_name, &retval, 0, NULL TSRMLS_CC); in mlfi_eom()
506 status = call_user_function(CG(function_table), NULL, &function_name, &retval, 0, NULL TSRMLS_CC); in mlfi_abort()
540 status = call_user_function(CG(function_table), NULL, &function_name, &retval, 0, NULL TSRMLS_CC); in mlfi_close()
1085 CG(compiler_options) |= ZEND_COMPILE_EXTENDED_INFO; in main()
[all …]
/PHP-5.4/ext/pdo/
H A Dphp_pdo.h70 if (zend_hash_find(CG(class_table), "pdo", sizeof("pdo"), (void **) &pce) != FAILURE) \
H A Dpdo.c81 …if (zend_hash_find(CG(class_table), "runtimeexception", sizeof("RuntimeException"), (void **) &pce… in php_pdo_get_exception_base()
/PHP-5.4/ext/standard/
H A Dassert.c222 call_user_function(CG(function_table), NULL, ASSERTG(callback), retval, 3, args TSRMLS_CC); in PHP_FUNCTION()
230 call_user_function(CG(function_table), NULL, ASSERTG(callback), retval, 4, args TSRMLS_CC); in PHP_FUNCTION()
/PHP-5.4/ext/readline/
H A Dreadline_cli.c274 if (!CG(asp_tags)) { in cli_is_valid_code()
362 if ((CG(short_tags) && !strncmp(code+i-1, "<?", 2)) in cli_is_valid_code()
363 || (CG(asp_tags) && !strncmp(code+i-1, "<%", 2)) in cli_is_valid_code()
H A Dreadline.c493 …if (call_user_function(CG(function_table), NULL, _readline_completion, &_readline_array, 3, params… in _readline_completion_cb()
563 call_user_function(CG(function_table), NULL, _prepped_callback, &dummy, 1, params TSRMLS_CC); in php_rl_callback_handler()
/PHP-5.4/sapi/cli/
H A Dphp_cli.c674 CG(in_compilation) = 0; /* not initialized but needed for several options */ in do_cli()
916 CG(interactive) = interactive; in do_cli()
967 CG(start_lineno) = lineno; in do_cli()
1071 CG(start_lineno) = lineno; in do_cli()
1358 CG(compiler_options) |= ZEND_COMPILE_EXTENDED_INFO; in WinMain()
/PHP-5.4/ext/simplexml/
H A Dsxe.c193 …if (zend_hash_find(CG(class_table), "simplexmlelement", sizeof("SimpleXMLElement"), (void **) &pce… in PHP_MINIT_FUNCTION()
/PHP-5.4/main/
H A Dmain.c139 …if (zend_hash_del(CG(function_table), function_name_5[i], strlen(function_name_5[i]) + 1)==FAILURE… in php_win32_disable_functions()
148 …if (zend_hash_del(CG(function_table), function_name_6[i], strlen(function_name_6[i]) + 1)==FAILURE… in php_win32_disable_functions()
1167 CG(parse_error) = 0; in php_error_cb()
1712 shutdown_memory_manager(CG(unclean_shutdown), 0 TSRMLS_CC); in php_request_shutdown_for_hook()
1757 if (CG(unclean_shutdown) && PG(last_error_type) == E_ERROR && in php_request_shutdown()
1827 shutdown_memory_manager(CG(unclean_shutdown) || !report_memleaks, 0 TSRMLS_CC); in php_request_shutdown()
2388 shutdown_memory_manager(CG(unclean_shutdown), 1 TSRMLS_CC); in php_module_shutdown()
/PHP-5.4/sapi/cgi/
H A Dcgi_main.c2132 CG(interactive) = 0;
2140 CG(interactive) = 1;
2148 CG(compiler_options) |= ZEND_COMPILE_EXTENDED_INFO;
2404 CG(start_lineno) = 2;
2422 CG(start_lineno) = 2;

Completed in 170 milliseconds

12