Request processing in two major processes of the PHP kernel

Source: Internet
Author: User
Request processing in two major processes of the PHP kernel
Static int php_handler (request_rec * r) {/* Initiliaze the context */php_struct * volatile ctx; void * conf; *** volatile brigade; apr_bucket * bucket; apr_status_t rv; request_rec * volatile parent_req = NULL; TSRMLS_FETCH ();...... zend_file_handle zfd; zfd. type = ZEND_HANDLE_FILENAME; zfd. filename = (char *) r-> filename; zfd. free_filename = 0; zfd. opened_path = NULL; zend_execute_scr Ipts (ZEND_INCLUDE TSRMLS_CC, NULL, 1, & zfd );......} ZEND_API int zend_execute_scripts (int type TSRMLS_DC, zval ** retval, int file_count ,...) /*{{{*/{...... EG (active_op_array) = \ zend_compile_file (file_handle, type TSRMLS_CC );...... zend_execute (EG (active_op_array) TSRMLS_CC );......} ZEND_API void execute (zend_op_array * op_array TSRMLS_DC ){//?????? Chen ?? Juan ?? Zend_execute_data execute_data; // response ????? Draft ammonia ??? Bake? Chen? If (EG (exception) {return;}/* Initialize execute_data */EX (fbc) = NULL ;//??????? Why ?? Why ?? Mustard? EX (object) = NULL ;//??????? Why ?? Why? Repeated Silicon thin EX (old_error_reporting) = NULL ;//?????? Xuan ??????? // How is it? Chen ????? Yu Hong? If (op_array-> T <TEMP_VAR_STACK_LIMIT) {EX (Ts) = (temp_variable *) do_alloca (sizeof (temp_variable) * op_array-> T);} else {EX (Ts) = (temp_variable *) safe_emalloc (sizeof (temp_variable), op_array-> T, 0);} // Is it a complex task? WHY ?????? Why? Village leaders ?????? Bang? Why ?? EX (CVs) = (zval ***) do_alloca (sizeof (zval ***) * op_array-> last_var); memset (EX (CVs), 0, sizeof (zval **) * op_array-> last_var); EX (op_array) = op_array ;//???? Why? Juan ???? EX (original_in_execution) = EG (in_execution); EX (symbol_table) = EG (active_symbol_table); EX (prev_execute_data) = EG (current_execute_data); // example ????? Parameters ???? Juan ??? Why ?? Version ???? EG (current_execute_data) = & execute_data; // response ????? Chen ?? Juan ????? EG (in_execution) = 1 ;//?????? Juan? Juan ?? Why? Opcode)/* # define ZEND_VM_SET_OPCODE (new_op) \ CHECK_SYMBOL_TABLES () \ EX (opline) = new_op execute_data.opline Hey ???? Chen ?? Opcode */if (op_array-> start_op) {ZEND_VM_SET_OPCODE (op_array-> start_op);} else {ZEND_VM_SET_OPCODE (op_array-> opcodes );} if (op_array-> uses_this & EG (This) {EG (This)-> refcount ++; /* For $ this pointer */if (zend_hash_add (EG (active_symbol_table), "this", sizeof ("this"), & EG (This), sizeof (zval *), NULL) = FAILURE) {EG (This)-> refcount -- ;}}// response ???? Pline ??? Parameters ???? Bi ?? Executor_globals.online_ptr restart ?? Too many ?? Cool? Why? Pcode ??? Chen? EG (opline_ptr) = & EX (opline); EX (function_state ). function = (zend_function *) op_array; EG (function_state_ptr) = & EX (function_state); # if ZEND_DEBUG/* function_state.function_symbol_table is saved as-is to a stack, * which is an intentional UMR. shut it up if we're re in DEBUG. */EX (function_state ). function_symbol_table = NULL; # endif while (1) {# ifdef ZEND_WIN32 if (EG (timed_out) {zend_timeout (0) ;}# endif // Atlas ?? Why ?? Why? Kettle opline ?? Handler? Mustard? WHY ?????? Why ?? Mustard ???? Parameters ????? Fried wonbang? Why? Ammonia ???? If (EX (opline)-> handler (& execute_data TSRMLS_CC)> 0) {return ;}} zend_error_noreturn (E_ERROR, "Arrived at end of main loop which shouldn't happen ");}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.