zhaolu 发表于 2018-12-11 10:12:02

PHP 内核分析(1):sapi_module_struct

  static sapi_module_struct cli_sapi_module = {
  "cli",                            /* name */
  "Command Line Interface",      /* pretty name */
  php_cli_startup,                /* startup */
  php_module_shutdown_wrapper,    /* shutdown */
  NULL,                            /* activate */
  sapi_cli_deactivate,            /* deactivate */
  sapi_cli_ub_write,                /* unbuffered write */
  sapi_cli_flush,                  /* flush */
  NULL,                            /* get uid */
  NULL,                            /* getenv */
  php_error,                        /* error handler */
  sapi_cli_header_handler,      /* header handler */
  sapi_cli_send_headers,            /* send headers handler */
  sapi_cli_send_header,            /* send header handler */
  NULL,                            /* read POST data */
  sapi_cli_read_cookies,          /* read Cookies */
  sapi_cli_register_variables,    /* register server variables */
  sapi_cli_log_message,            /* Log message */
  NULL,                            /* Get request time */
  NULL,                            /* Child terminate */
  NULL, /* php_ini_path_override   */
  NULL, /* default_post_reader   */
  NULL, /* treat_data            */
  NULL, /* executable_location   */
  0,    /* php_ini_ignore          */
  0,    /* php_ini_ignore_cwd      */
  NULL, /* get_fd                  */
  NULL, /* force_http_10         */
  NULL, /* get_target_uid          */
  NULL, /* get_target_gid          */
  NULL, /* input_filter            */
  NULL, /* ini_defaults            */
  0,    /* phpinfo_as_text;      */
  NULL, /* ini_entries;            */
  NULL, /* additional_functions    */
  NULL/* input_filter_init       */
  };

页: [1]
查看完整版本: PHP 内核分析(1):sapi_module_struct