Back to index

php5  5.3.10
Defines | Functions | Variables
php_apache.c File Reference
#include "php_apache_http.h"
#include <build-defs.h>

Go to the source code of this file.

Defines

#define SECTION(name)   PUTS("<H2 align=\"center\">" name "</H2>\n")
#define offsetof(s_type, field)   ((size_t)&(((s_type*)0)->field))
#define APREQ_GET_THIS(ZVAL)
#define APREQ_GET_REQUEST(ZVAL, R)

Functions

static void apache_table_to_zval (table *, int safe_mode, zval *return_value)
 PHP_FUNCTION (virtual)
 PHP_FUNCTION (apache_request_headers)
 PHP_FUNCTION (apache_response_headers)
 PHP_FUNCTION (apachelog)
 PHP_FUNCTION (apache_note)
 PHP_FUNCTION (apache_lookup_uri)
 PHP_FUNCTION (apache_child_terminate)
 PHP_FUNCTION (apache_setenv)
 PHP_FUNCTION (apache_get_version)
 PHP_FUNCTION (apache_get_modules)
 PHP_MINFO_FUNCTION (apache)
static void php_apache_globals_ctor (php_apache_info_struct *apache_globals TSRMLS_DC)
static void php_apache_request_free (zend_rsrc_list_entry *rsrc TSRMLS_DC)
static request_rec * get_apache_request (zval *z TSRMLS_DC)
zval * php_apache_request_new (request_rec *r)
static void apache_request_read_string_slot (int offset, INTERNAL_FUNCTION_PARAMETERS)
static void apache_request_string_slot (int offset, INTERNAL_FUNCTION_PARAMETERS)
static void apache_request_read_int_slot (int offset, INTERNAL_FUNCTION_PARAMETERS)
static void apache_request_int_slot (int offset, INTERNAL_FUNCTION_PARAMETERS)
 PHP_FUNCTION (apache_request_filename)
 PHP_FUNCTION (apache_request_uri)
 PHP_FUNCTION (apache_request_unparsed_uri)
 PHP_FUNCTION (apache_request_path_info)
 PHP_FUNCTION (apache_request_args)
 PHP_FUNCTION (apache_request_boundary)
 PHP_FUNCTION (apache_request_content_type)
 PHP_FUNCTION (apache_request_content_encoding)
 PHP_FUNCTION (apache_request_handler)
 PHP_FUNCTION (apache_request_the_request)
 PHP_FUNCTION (apache_request_protocol)
 PHP_FUNCTION (apache_request_hostname)
 PHP_FUNCTION (apache_request_status_line)
 PHP_FUNCTION (apache_request_method)
 PHP_FUNCTION (apache_request_proto_num)
 PHP_FUNCTION (apache_request_assbackwards)
 PHP_FUNCTION (apache_request_proxyreq)
 PHP_FUNCTION (apache_request_chunked)
 PHP_FUNCTION (apache_request_header_only)
 PHP_FUNCTION (apache_request_request_time)
 PHP_FUNCTION (apache_request_status)
 PHP_FUNCTION (apache_request_method_number)
 PHP_FUNCTION (apache_request_allowed)
 PHP_FUNCTION (apache_request_bytes_sent)
 PHP_FUNCTION (apache_request_mtime)
 PHP_FUNCTION (apache_request_content_length)
 PHP_FUNCTION (apache_request_remaining)
 PHP_FUNCTION (apache_request_no_cache)
 PHP_FUNCTION (apache_request_no_local_copy)
 PHP_FUNCTION (apache_request_read_body)
 PHP_FUNCTION (apache_request_headers_in)
static void add_header_to_table (table *t, INTERNAL_FUNCTION_PARAMETERS)
 PHP_FUNCTION (apache_request_headers_out)
 PHP_FUNCTION (apache_request_err_headers_out)
 PHP_FUNCTION (apache_request_server_port)
 PHP_FUNCTION (apache_request_remote_host)
 PHP_FUNCTION (apache_request_update_mtime)
 PHP_FUNCTION (apache_request_set_etag)
 PHP_FUNCTION (apache_request_set_last_modified)
 PHP_FUNCTION (apache_request_meets_conditions)
 PHP_FUNCTION (apache_request_discard_request_body)
 PHP_FUNCTION (apache_request_satisfies)
 PHP_FUNCTION (apache_request_is_initial_req)
 PHP_FUNCTION (apache_request_some_auth_required)
 PHP_FUNCTION (apache_request_auth_type)
 PHP_FUNCTION (apache_request_auth_name)
 PHP_FUNCTION (apache_request_basic_auth_pw)
 PHP_FUNCTION (apache_request_send_http_header)
 PHP_FUNCTION (apache_request_basic_http_header)
 PHP_FUNCTION (apache_request_send_http_trace)
 PHP_FUNCTION (apache_request_send_http_options)
 PHP_FUNCTION (apache_request_send_error_response)
 PHP_FUNCTION (apache_request_set_content_length)
 PHP_FUNCTION (apache_request_set_keepalive)
 PHP_FUNCTION (apache_request_rputs)
 PHP_FUNCTION (apache_request_log_error)
 PHP_FUNCTION (apache_request_sub_req_lookup_uri)
 PHP_FUNCTION (apache_request_sub_req_lookup_file)
 PHP_FUNCTION (apache_request_sub_req_method_uri)
 PHP_FUNCTION (apache_request_run)
 PHP_FUNCTION (apache_request_internal_redirect)
 PHP_FUNCTION (apache_request_send_header_field)
static PHP_MINIT_FUNCTION (apache)
static PHP_MSHUTDOWN_FUNCTION (apache)

Variables

php_apache_info_struct php_apache_info
moduletop_module
module ** ap_loaded_modules
static int le_apachereq
static zend_class_entry * apacherequest_class_entry
const zend_function_entry apache_functions []
static const zend_function_entry php_apache_request_class_functions []
zend_module_entry apache_module_entry

Define Documentation

#define APREQ_GET_REQUEST (   ZVAL,
  R 
)
Value:

Definition at line 119 of file php_apache.c.

#define APREQ_GET_THIS (   ZVAL)
Value:
if (NULL == (ZVAL = getThis())) { \
                                                                      php_error(E_WARNING, "%s(): underlying ApacheRequest object missing", \
                                                                             get_active_function_name(TSRMLS_C)); \
                                                                      RETURN_FALSE; \
                                                               }

Definition at line 114 of file php_apache.c.

#define offsetof (   s_type,
  field 
)    ((size_t)&(((s_type*)0)->field))

Definition at line 40 of file php_apache.c.

#define SECTION (   name)    PUTS("<H2 align=\"center\">" name "</H2>\n")

Definition at line 37 of file php_apache.c.


Function Documentation

static void add_header_to_table ( table t,
INTERNAL_FUNCTION_PARAMETERS   
) [static]

Definition at line 577 of file php_apache.c.

{
       zval *first = NULL;
       zval *second = NULL;
       zval **entry, **value;
       char *string_key;
       uint string_key_len;
       ulong num_key;
       
       zend_bool replace = 0;
       HashPosition pos;

       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|zb", &first, &second, &replace) == FAILURE) {
              RETURN_FALSE;
       }

       if (Z_TYPE_P(first) == IS_ARRAY) {
              switch(ZEND_NUM_ARGS()) {
                     case 1:
                     case 3:
                            zend_hash_internal_pointer_reset_ex(Z_ARRVAL_P(first), &pos);
                            while (zend_hash_get_current_data_ex(Z_ARRVAL_P(first), (void **)&entry, &pos) == SUCCESS) {
                                   switch(zend_hash_get_current_key_ex(Z_ARRVAL_P(first), &string_key, &string_key_len, &num_key, 0, &pos)) {
                                          case HASH_KEY_IS_STRING:
                                                 if (zend_hash_find(Z_ARRVAL_P(first), string_key, string_key_len, (void **)&value) == FAILURE) {
                                                        zend_hash_move_forward_ex(Z_ARRVAL_P(first), &pos);
                                                        continue;
                                                 }
                                                 if (!value) {
                                                        zend_hash_move_forward_ex(Z_ARRVAL_P(first), &pos);
                                                        continue;
                                                 }

                                                 convert_to_string_ex(value);
                                                 if (replace) {
                                                        ap_table_set(t, string_key, Z_STRVAL_PP(value));
                                                 } else {
                                                        ap_table_merge(t, string_key, Z_STRVAL_PP(value));
                                                 }
                                                 break;
                                          case HASH_KEY_IS_LONG:
                                          default:
                                                 php_error(E_WARNING, "%s(): Can only add STRING keys to headers!", get_active_function_name(TSRMLS_C));
                                                 break;
                                   }

                                   zend_hash_move_forward_ex(Z_ARRVAL_P(first), &pos);
                            }
                            break;
                     default:
                            WRONG_PARAM_COUNT;
                            break;
              }
       } else if (Z_TYPE_P(first) == IS_STRING) {
              switch(ZEND_NUM_ARGS()) {
                     case 2:
                     case 3:
                            convert_to_string_ex(&second);
                            if (replace) {
                                   ap_table_set(t, Z_STRVAL_P(first), Z_STRVAL_P(second));
                            } else {
                                   ap_table_merge(t, Z_STRVAL_P(first), Z_STRVAL_P(second));
                            }
                            break;
                     default:
                            WRONG_PARAM_COUNT;
                            break;
              }
       } else {
              RETURN_FALSE;
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void apache_request_int_slot ( int  offset,
INTERNAL_FUNCTION_PARAMETERS   
) [static]

Definition at line 258 of file php_apache.c.

{
       zval *id;
       request_rec *r;
       long old_value, new_value;
       long *target;

       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &new_value) == FAILURE) {
              return;
       }

       APREQ_GET_REQUEST(id, r);

       target = (long *)((char*)r + offset);
       old_value = *target;

       switch (ZEND_NUM_ARGS()) {
              case 0:
                     break;
              case 1:
                     *target = new_value;
                     break;
              default:
                     WRONG_PARAM_COUNT;
                     break;
       }

       RETURN_LONG(old_value);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void apache_request_read_int_slot ( int  offset,
INTERNAL_FUNCTION_PARAMETERS   
) [static]

Definition at line 238 of file php_apache.c.

{
       zval *id;
       request_rec *r;
       long l;

       if (zend_parse_parameters_none() == FAILURE) {
              return;
       }

       APREQ_GET_REQUEST(id, r);

       l = *(long *)((char*)r + offset);

       RETURN_LONG(l);
}

Here is the caller graph for this function:

static void apache_request_read_string_slot ( int  offset,
INTERNAL_FUNCTION_PARAMETERS   
) [static]

Definition at line 182 of file php_apache.c.

{
       zval *id;
       request_rec *r;
       char *s;

       if (zend_parse_parameters_none() == FAILURE) {
              return;
       }

       APREQ_GET_REQUEST(id, r);

       s = *(char **)((char*)r + offset);

       if (s) {
              RETURN_STRING(s, 1);
       }

       RETURN_EMPTY_STRING();
}

Here is the caller graph for this function:

static void apache_request_string_slot ( int  offset,
INTERNAL_FUNCTION_PARAMETERS   
) [static]

Definition at line 207 of file php_apache.c.

{
       zval *id;
       request_rec *r;
       char *old_value, *new_value = NULL;
       int new_value_len;
       char **target;

       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &new_value, &new_value_len) == FAILURE) {
              return;
       }

       APREQ_GET_REQUEST(id, r);

       target = (char **)((char*)r + offset);
       old_value = *target;

       if (new_value) {
              *target = ap_pstrdup(r->pool, new_value);
       }

       if (old_value) {
              RETURN_STRING(old_value, 1);
       }

       RETURN_EMPTY_STRING();
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void apache_table_to_zval ( table t,
int  safe_mode,
zval *  return_value 
) [static]

Definition at line 1756 of file php_apache.c.

{
    array_header *env_arr;
    table_entry *tenv;
    int i;
       
    array_init(return_value);
    env_arr = table_elts(t);
    tenv = (table_entry *)env_arr->elts;
    for (i = 0; i < env_arr->nelts; ++i) {
              if (!tenv[i].key ||
                     (safe_mode && !strncasecmp(tenv[i].key, "authorization", 13))) {
                     continue;
              }
              if (add_assoc_string(return_value, tenv[i].key, (tenv[i].val==NULL) ? "" : tenv[i].val, 1)==FAILURE) {
                     RETURN_FALSE;
              }
    }

}

Here is the caller graph for this function:

static request_rec* get_apache_request ( zval *z  TSRMLS_DC) [static]

Definition at line 129 of file php_apache.c.

{
       request_rec *r;
       zval **addr;

       if (NULL == z) {
              php_error(E_WARNING, "get_apache_request() invalid wrapper passed");
              return NULL;
       }

       if (Z_TYPE_P(z) != IS_OBJECT) {
              php_error(E_WARNING, "%s(): wrapper is not an object", get_active_function_name(TSRMLS_C));
              return NULL;
       }

       if (zend_hash_index_find(Z_OBJPROP_P(z), 0, (void **)&addr) == FAILURE) {
              php_error(E_WARNING, "%s(): underlying object missing", get_active_function_name(TSRMLS_C));
              return NULL;
       }

       r = (request_rec *)Z_LVAL_PP(addr);
       if (!r) {
              php_error(E_WARNING, "%s(): request_rec invalid", get_active_function_name(TSRMLS_C));
              return NULL;
       }

       return r;
}

Here is the call graph for this function:

static void php_apache_globals_ctor ( php_apache_info_struct *apache_globals  TSRMLS_DC) [static]

Definition at line 108 of file php_apache.c.

{
       apache_globals->in_request = 0;
}

Here is the caller graph for this function:

static void php_apache_request_free ( zend_rsrc_list_entry *rsrc  TSRMLS_DC) [static]

Definition at line 122 of file php_apache.c.

{
       zval *z = (zval *)rsrc->ptr;
/*     fprintf(stderr, "%s() %p\n", __FUNCTION__, z); */
       zval_ptr_dtor(&z);
}

Here is the caller graph for this function:

zval* php_apache_request_new ( request_rec *  r)

Definition at line 161 of file php_apache.c.

{
       zval *req;
       zval *addr;
       
       TSRMLS_FETCH();

       MAKE_STD_ZVAL(addr);
       Z_TYPE_P(addr) = IS_LONG;
       Z_LVAL_P(addr) = (int) r;

       MAKE_STD_ZVAL(req);
       object_init_ex(req, apacherequest_class_entry);
       zend_hash_index_update(Z_OBJPROP_P(req), 0, &addr, sizeof(zval *), NULL);

       return req;
}

Here is the caller graph for this function:

PHP_FUNCTION ( virtual  )
PHP_FUNCTION ( apache_request_headers  )
PHP_FUNCTION ( apache_response_headers  )
PHP_FUNCTION ( apachelog  )
PHP_FUNCTION ( apache_note  )
PHP_FUNCTION ( apache_lookup_uri  )
PHP_FUNCTION ( apache_child_terminate  )
PHP_FUNCTION ( apache_setenv  )
PHP_FUNCTION ( apache_get_version  )
PHP_FUNCTION ( apache_get_modules  )
PHP_FUNCTION ( apache_request_filename  )

Definition at line 295 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_uri  )

Definition at line 303 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_unparsed_uri  )

Definition at line 311 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_path_info  )

Definition at line 319 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_args  )

Definition at line 327 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_boundary  )

Definition at line 335 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_content_type  )

Definition at line 344 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_content_encoding  )

Definition at line 352 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_handler  )

Definition at line 360 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_the_request  )

Definition at line 368 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_protocol  )

Definition at line 376 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_hostname  )

Definition at line 384 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_status_line  )

Definition at line 392 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_method  )

Definition at line 400 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_proto_num  )

Definition at line 413 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_assbackwards  )

Definition at line 421 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_proxyreq  )

Definition at line 430 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_chunked  )

Definition at line 438 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_header_only  )

Definition at line 447 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_request_time  )

Definition at line 455 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_status  )

Definition at line 463 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_method_number  )

Definition at line 471 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_allowed  )

Definition at line 479 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_bytes_sent  )

Definition at line 487 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_mtime  )

Definition at line 495 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_content_length  )

Definition at line 503 of file php_apache.c.

{
       zval *id;
       long zlen;
       request_rec *r;

       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &zlen) == FAILURE) {
              return;
       }

       if (ZEND_NUM_ARGS() == 0) {
              apache_request_read_int_slot(offsetof(request_rec, clength), INTERNAL_FUNCTION_PARAM_PASSTHRU);
       } else {
              APREQ_GET_REQUEST(id, r);

              (void)ap_set_content_length(r, zlen);
              RETURN_TRUE;
       }
}

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_remaining  )

Definition at line 526 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_no_cache  )

Definition at line 534 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_no_local_copy  )

Definition at line 542 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_read_body  )

Definition at line 550 of file php_apache.c.

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_headers_in  )

Definition at line 563 of file php_apache.c.

{
       zval *id;
       request_rec *r;
       
       APREQ_GET_REQUEST(id, r);

       apache_table_to_zval(r->headers_in, 0, return_value);
}

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_headers_out  )

Definition at line 656 of file php_apache.c.

{
       zval *id;
       request_rec *r;
       
       APREQ_GET_REQUEST(id, r);

       if (ZEND_NUM_ARGS() > 0) {
              add_header_to_table(r->headers_out, INTERNAL_FUNCTION_PARAM_PASSTHRU);
       }

       apache_table_to_zval(r->headers_out, 0, return_value);
}

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_err_headers_out  )

Definition at line 675 of file php_apache.c.

{
       zval *id;
       request_rec *r;
       
       APREQ_GET_REQUEST(id, r);

       if (ZEND_NUM_ARGS() > 0) {
              add_header_to_table(r->err_headers_out, INTERNAL_FUNCTION_PARAM_PASSTHRU);
       }

       apache_table_to_zval(r->err_headers_out, 0, return_value);
}

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_server_port  )

Definition at line 696 of file php_apache.c.

{
       zval *id;
       request_rec *r;

       if (zend_parse_parameters_none() == FAILURE) {
              return;
       }

       APREQ_GET_REQUEST(id, r);

       RETURN_LONG(ap_get_server_port(r));
}
PHP_FUNCTION ( apache_request_remote_host  )

Definition at line 713 of file php_apache.c.

{
       zval *id;
       long type = 0;
       request_rec *r;
       char *res;

       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &type) == FAILURE) {
              return;
       }

       if (!type) {
              type = REMOTE_NAME;
       }

       APREQ_GET_REQUEST(id, r);

       res = (char *)ap_get_remote_host(r->connection, r->per_dir_config, (int)type);

       if (res) {
              RETURN_STRING(res, 1);
       }

       RETURN_EMPTY_STRING();
}

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_update_mtime  )

Definition at line 742 of file php_apache.c.

{
       zval *id;
       request_rec *r;
       long mtime = 0;

       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &mtime) == FAILURE) {
              return;
       }

       APREQ_GET_REQUEST(id, r);

       RETURN_LONG(ap_update_mtime(r, (int) mtime));
}

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_set_etag  )

Definition at line 761 of file php_apache.c.

{
       zval *id;
       request_rec *r;

       if (zend_parse_parameters_none() == FAILURE) {
              return;
       }

       APREQ_GET_REQUEST(id, r);

       ap_set_etag(r);
       RETURN_TRUE;
}
PHP_FUNCTION ( apache_request_set_last_modified  )

Definition at line 779 of file php_apache.c.

{
       zval *id;
       request_rec *r;

       if (zend_parse_parameters_none() == FAILURE) {
              return;
       }

       APREQ_GET_REQUEST(id, r);

       ap_set_last_modified(r);
       RETURN_TRUE;
}
PHP_FUNCTION ( apache_request_meets_conditions  )

Definition at line 797 of file php_apache.c.

{
       zval *id;
       request_rec *r;

       if (zend_parse_parameters_none() == FAILURE) {
              return;
       }

       APREQ_GET_REQUEST(id, r);

       RETURN_LONG(ap_meets_conditions(r));
}
PHP_FUNCTION ( apache_request_discard_request_body  )

Definition at line 814 of file php_apache.c.

{
       zval *id;
       request_rec *r;

       if (zend_parse_parameters_none() == FAILURE) {
              return;
       }

       APREQ_GET_REQUEST(id, r);

       RETURN_LONG(ap_discard_request_body(r));
}
PHP_FUNCTION ( apache_request_satisfies  )

Definition at line 831 of file php_apache.c.

{
       zval *id;
       request_rec *r;

       if (zend_parse_parameters_none() == FAILURE) {
              return;
       }

       APREQ_GET_REQUEST(id, r);

       RETURN_LONG(ap_satisfies(r));
}
PHP_FUNCTION ( apache_request_is_initial_req  )

Definition at line 849 of file php_apache.c.

{
       zval *id;
       request_rec *r;

       if (zend_parse_parameters_none() == FAILURE) {
              return;
       }

       APREQ_GET_REQUEST(id, r);

       RETURN_BOOL(ap_is_initial_req(r));
}
PHP_FUNCTION ( apache_request_some_auth_required  )

Definition at line 866 of file php_apache.c.

{
       zval *id;
       request_rec *r;

       if (zend_parse_parameters_none() == FAILURE) {
              return;
       }

       APREQ_GET_REQUEST(id, r);

       RETURN_BOOL(ap_some_auth_required(r));
}
PHP_FUNCTION ( apache_request_auth_type  )

Definition at line 883 of file php_apache.c.

{
       zval *id;
       request_rec *r;
       char *t;

       if (zend_parse_parameters_none() == FAILURE) {
              return;
       }

       APREQ_GET_REQUEST(id, r);

       t = (char *)ap_auth_type(r);
       if (!t) {
              RETURN_NULL();
       }

       RETURN_STRING(t, 1);
}
PHP_FUNCTION ( apache_request_auth_name  )

Definition at line 906 of file php_apache.c.

{
       zval *id;
       request_rec *r;
       char *t;

       if (zend_parse_parameters_none() == FAILURE) {
              return;
       }

       APREQ_GET_REQUEST(id, r);

       t = (char *)ap_auth_name(r);
       if (!t) {
              RETURN_NULL();
       }

       RETURN_STRING(t, 1);
}
PHP_FUNCTION ( apache_request_basic_auth_pw  )

Definition at line 929 of file php_apache.c.

{
       zval *id, *zpw;
       request_rec *r;
       const char *pw;
       long status;

       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &zpw) == FAILURE) {
           return;
       }

       if (!PZVAL_IS_REF(zpw)) {
           zend_error(E_WARNING, "Parameter wasn't passed by reference");
           RETURN_NULL();
       }

       APREQ_GET_REQUEST(id, r);

       pw = NULL;
       status = ap_get_basic_auth_pw(r, &pw);
       if (status == OK && pw) {
              ZVAL_STRING(zpw, (char *)pw, 1);
       } else {
              ZVAL_NULL(zpw);
       }
       RETURN_LONG(status);
}

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_send_http_header  )

Definition at line 961 of file php_apache.c.

{
    zval *id;
    request_rec *r;
    char *type = NULL;
    int typelen;

       if (zend_parse_parameters(ZEND_NUM_ARGS()  TSRMLS_CC, "|s", &type, &typelen) == FAILURE) {
        return;
       }

    APREQ_GET_REQUEST(id, r);
    if(type) {
        r->content_type = pstrdup(r->pool, type);
    }
    ap_send_http_header(r);
    SG(headers_sent) = 1;
    AP(headers_sent) = 1;
    RETURN_TRUE;
}

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_basic_http_header  )

Definition at line 982 of file php_apache.c.

{
    zval *id;
    request_rec *r;

       if (zend_parse_parameters_none() == FAILURE) {
              return;
       }

    APREQ_GET_REQUEST(id, r);

    ap_basic_http_header((request_rec *)SG(server_context));
    SG(headers_sent) = 1;
    AP(headers_sent) = 1;
    RETURN_TRUE;
}
PHP_FUNCTION ( apache_request_send_http_trace  )

Definition at line 999 of file php_apache.c.

{
    zval *id;
    request_rec *r;

       if (zend_parse_parameters_none() == FAILURE) {
              return;
       }
       
    APREQ_GET_REQUEST(id, r);

    ap_send_http_trace((request_rec *)SG(server_context));
    SG(headers_sent) = 1;
    AP(headers_sent) = 1;
    RETURN_TRUE;
}
PHP_FUNCTION ( apache_request_send_http_options  )

Definition at line 1016 of file php_apache.c.

{
    zval *id;
    request_rec *r;

       if (zend_parse_parameters_none() == FAILURE) {
              return;
       }

    APREQ_GET_REQUEST(id, r);

    ap_send_http_options((request_rec *)SG(server_context));
    SG(headers_sent) = 1;
    AP(headers_sent) = 1;
    RETURN_TRUE;
}
PHP_FUNCTION ( apache_request_send_error_response  )

Definition at line 1033 of file php_apache.c.

{
    zval *id;
    request_rec *r;
       long rec = 0;

       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &rec) == FAILURE) {
              return;
       }

    APREQ_GET_REQUEST(id, r);
       ap_send_error_response(r, (int) rec);
    RETURN_TRUE;
}

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_set_content_length  )

Definition at line 1048 of file php_apache.c.

{
       long length;
    zval *id;
    request_rec *r;

       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &length) == FAILURE) {
              return;
       }

    APREQ_GET_REQUEST(id, r);

    ap_set_content_length(r, length);
    RETURN_TRUE;
}

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_set_keepalive  )

Definition at line 1064 of file php_apache.c.

{
    zval *id;
    request_rec *r;

       if (zend_parse_parameters_none() == FAILURE) {
              return;
       }
       
    APREQ_GET_REQUEST(id, r);
    ap_set_keepalive(r);
    RETURN_TRUE;
}
PHP_FUNCTION ( apache_request_rputs  )

Definition at line 1090 of file php_apache.c.

{
    char *buffer;
       int buffer_len;
    zval *id;
    request_rec *r;

       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &buffer, &buffer_len) == FAILURE) {
              return;
       }

    APREQ_GET_REQUEST(id, r);
    ap_rwrite(buffer, buffer_len, (request_rec*)SG(server_context));
}

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_log_error  )

Definition at line 1133 of file php_apache.c.

{
    zval *id;
       char *z_errstr;
       int z_errstr_len;
    long facility = APLOG_ERR;
    request_rec *r;

       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &z_errstr, &z_errstr_len, &facility) == FAILURE) {
              return;
       }

    APREQ_GET_REQUEST(id, r);
       ap_log_error(APLOG_MARK, (int) facility, r->server, "%s", z_errstr);
    RETURN_TRUE;
}

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_sub_req_lookup_uri  )

Definition at line 1156 of file php_apache.c.

{
    zval *id;
       char *file;
       int file_len;
    request_rec *r, *sub_r;

       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &file, &file_len) == FAILURE) {
              return;
       }

    APREQ_GET_REQUEST(id, r);
    sub_r = ap_sub_req_lookup_uri(file, r);

    if (!sub_r) {
        RETURN_FALSE;
    }
    return_value = php_apache_request_new(sub_r);
}

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_sub_req_lookup_file  )

Definition at line 1181 of file php_apache.c.

{
    zval *id;
       char *file;
       int file_len;
    request_rec *r, *sub_r;

       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &file, &file_len) == FAILURE) {
              return;
       }

    APREQ_GET_REQUEST(id, r);

    sub_r = ap_sub_req_lookup_file(file, r);

    if (!sub_r) {
        RETURN_FALSE;
    }
    return_value = php_apache_request_new(sub_r);
}

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_sub_req_method_uri  )

Definition at line 1207 of file php_apache.c.

{
    zval *id;
       char *file, *method;
       int file_len, method_len;
    request_rec *r, *sub_r;

       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &method, &method_len, &file, &file_len) == FAILURE) {
              return;
       }

    APREQ_GET_REQUEST(id, r);

    sub_r = ap_sub_req_method_uri(method, file, r);

    if (!sub_r) {
        RETURN_FALSE;
    }
    return_value = php_apache_request_new(sub_r);
}

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_run  )

Definition at line 1233 of file php_apache.c.

{
    zval *id;
    request_rec *r;
    int status;

    if (zend_parse_parameters_none() == FAILURE) {
       return;
       }

    APREQ_GET_REQUEST(id, r);
    if (!r || ap_is_initial_req(r)) {
        RETURN_FALSE;
       }
    status = ap_run_sub_req(r);
    ap_destroy_sub_req(r);
    RETURN_LONG(status);
}
PHP_FUNCTION ( apache_request_internal_redirect  )

Definition at line 1253 of file php_apache.c.

{
    zval *id;
       char *new_uri;
       int new_uri_len;
    request_rec *r;

       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &new_uri, &new_uri_len) == FAILURE) {
              return;
       }

    APREQ_GET_REQUEST(id, r);

    ap_internal_redirect(new_uri, r);
}

Here is the call graph for this function:

PHP_FUNCTION ( apache_request_send_header_field  )

Definition at line 1269 of file php_apache.c.

{
       char *fieldname, *fieldval;
       int fieldname_len, fieldval_len;
    zval *id;
    request_rec *r;

       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &fieldname, &fieldname_len, &fieldval, &fieldval_len) == FAILURE) {
              return;
       }

    APREQ_GET_REQUEST(id, r);

    ap_send_header_field(r, fieldname, fieldval);
    SG(headers_sent) = 1;
    AP(headers_sent) = 1;
}

Here is the call graph for this function:

PHP_MINFO_FUNCTION ( apache  )
static PHP_MINIT_FUNCTION ( apache  ) [static]

Definition at line 1392 of file php_apache.c.

{
       zend_class_entry ce;

#ifdef ZTS
       ts_allocate_id(&php_apache_info_id, sizeof(php_apache_info_struct), (ts_allocate_ctor) php_apache_globals_ctor, NULL);
#else
       php_apache_globals_ctor(&php_apache_info TSRMLS_CC);
#endif
       REGISTER_INI_ENTRIES();


       le_apachereq = zend_register_list_destructors_ex(php_apache_request_free, NULL, "ApacheRequest", module_number);
       INIT_OVERLOADED_CLASS_ENTRY(ce, "ApacheRequest", php_apache_request_class_functions, NULL, NULL, NULL);
       apacherequest_class_entry = zend_register_internal_class_ex(&ce, NULL, NULL TSRMLS_CC);

       REGISTER_LONG_CONSTANT("OK",                            OK,                                CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("DECLINED",               DECLINED,                   CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("FORBIDDEN",                     FORBIDDEN,                  CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("AUTH_REQUIRED",          AUTH_REQUIRED,              CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("DONE",                          DONE,                       CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("SERVER_ERROR",           SERVER_ERROR,        CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("REDIRECT",               REDIRECT,                   CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("BAD_REQUEST",            BAD_REQUEST,         CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("NOT_FOUND",                     NOT_FOUND,                  CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_CONTINUE",     HTTP_CONTINUE,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_SWITCHING_PROTOCOLS",     HTTP_SWITCHING_PROTOCOLS,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_PROCESSING",     HTTP_PROCESSING,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_OK",     HTTP_OK,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_CREATED",     HTTP_CREATED,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_ACCEPTED",     HTTP_ACCEPTED,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_NON_AUTHORITATIVE",     HTTP_NON_AUTHORITATIVE,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_NO_CONTENT",     HTTP_NO_CONTENT,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_RESET_CONTENT",     HTTP_RESET_CONTENT,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_PARTIAL_CONTENT",     HTTP_PARTIAL_CONTENT,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_MULTI_STATUS",     HTTP_MULTI_STATUS,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_MULTIPLE_CHOICES",     HTTP_MULTIPLE_CHOICES,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_MOVED_PERMANENTLY",     HTTP_MOVED_PERMANENTLY,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_MOVED_TEMPORARILY",     HTTP_MOVED_TEMPORARILY,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_SEE_OTHER",     HTTP_SEE_OTHER,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_NOT_MODIFIED",     HTTP_NOT_MODIFIED,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_USE_PROXY",     HTTP_USE_PROXY,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_TEMPORARY_REDIRECT",     HTTP_TEMPORARY_REDIRECT,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_BAD_REQUEST",     HTTP_BAD_REQUEST,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_UNAUTHORIZED",     HTTP_UNAUTHORIZED,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_PAYMENT_REQUIRED",     HTTP_PAYMENT_REQUIRED,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_FORBIDDEN",     HTTP_FORBIDDEN,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_NOT_FOUND",     HTTP_NOT_FOUND,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_METHOD_NOT_ALLOWED",     HTTP_METHOD_NOT_ALLOWED,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_NOT_ACCEPTABLE",     HTTP_NOT_ACCEPTABLE,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_PROXY_AUTHENTICATION_REQUIRED",     HTTP_PROXY_AUTHENTICATION_REQUIRED,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_REQUEST_TIME_OUT",     HTTP_REQUEST_TIME_OUT,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_CONFLICT",     HTTP_CONFLICT,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_GONE",     HTTP_GONE,   CONST_CS | CONST_PERSISTENT);REGISTER_LONG_CONSTANT("HTTP_LENGTH_REQUIRED",     HTTP_LENGTH_REQUIRED,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_PRECONDITION_FAILED",     HTTP_PRECONDITION_FAILED,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_REQUEST_ENTITY_TOO_LARGE",     HTTP_REQUEST_ENTITY_TOO_LARGE,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_REQUEST_URI_TOO_LARGE",     HTTP_REQUEST_URI_TOO_LARGE,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_UNSUPPORTED_MEDIA_TYPE",     HTTP_UNSUPPORTED_MEDIA_TYPE,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_RANGE_NOT_SATISFIABLE",     HTTP_RANGE_NOT_SATISFIABLE,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_EXPECTATION_FAILED",     HTTP_EXPECTATION_FAILED,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_UNPROCESSABLE_ENTITY",     HTTP_UNPROCESSABLE_ENTITY,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_LOCKED",     HTTP_LOCKED,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_FAILED_DEPENDENCY",     HTTP_FAILED_DEPENDENCY,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_INTERNAL_SERVER_ERROR",     HTTP_INTERNAL_SERVER_ERROR,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_NOT_IMPLEMENTED",     HTTP_NOT_IMPLEMENTED,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_BAD_GATEWAY",     HTTP_BAD_GATEWAY,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_SERVICE_UNAVAILABLE",     HTTP_SERVICE_UNAVAILABLE,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_GATEWAY_TIME_OUT",     HTTP_GATEWAY_TIME_OUT,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_VERSION_NOT_SUPPORTED",     HTTP_VERSION_NOT_SUPPORTED,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_VARIANT_ALSO_VARIES",     HTTP_VARIANT_ALSO_VARIES,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_INSUFFICIENT_STORAGE",     HTTP_INSUFFICIENT_STORAGE,   CONST_CS | CONST_PERSISTENT);
    REGISTER_LONG_CONSTANT("HTTP_NOT_EXTENDED",     HTTP_NOT_EXTENDED,   CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("APLOG_EMERG",            APLOG_EMERG,         CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("APLOG_ALERT",            APLOG_ALERT,         CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("APLOG_CRIT",             APLOG_CRIT,                 CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("APLOG_ERR",                     APLOG_ERR,           CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("APLOG_WARNING",          APLOG_WARNING,              CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("APLOG_NOTICE",           APLOG_NOTICE,        CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("APLOG_INFO",             APLOG_INFO,                 CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("APLOG_DEBUG",            APLOG_DEBUG,         CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("M_GET",                         M_GET,                      CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("M_PUT",                         M_PUT,                      CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("M_POST",                 M_POST,                            CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("M_DELETE",               M_DELETE,                   CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("M_CONNECT",                     M_CONNECT,                  CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("M_OPTIONS",                     M_OPTIONS,                  CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("M_TRACE",                M_TRACE,                    CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("M_PATCH",                M_PATCH,                    CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("M_PROPFIND",             M_PROPFIND,                 CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("M_PROPPATCH",            M_PROPPATCH,         CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("M_MKCOL",                M_MKCOL,                    CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("M_COPY",                 M_COPY,                            CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("M_MOVE",                 M_MOVE,                            CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("M_LOCK",                 M_LOCK,                            CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("M_UNLOCK",               M_UNLOCK,                   CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("M_INVALID",                     M_INVALID,                  CONST_CS | CONST_PERSISTENT);

       /* Possible values for request_rec.read_body (set by handling module):
        *    REQUEST_NO_BODY          Send 413 error if message has any body
        *    REQUEST_CHUNKED_ERROR    Send 411 error if body without Content-Length
        *    REQUEST_CHUNKED_DECHUNK  If chunked, remove the chunks for me.
        *    REQUEST_CHUNKED_PASS     Pass the chunks to me without removal.
        */
       REGISTER_LONG_CONSTANT("REQUEST_NO_BODY",               REQUEST_NO_BODY,                   CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("REQUEST_CHUNKED_ERROR",  REQUEST_CHUNKED_ERROR,             CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("REQUEST_CHUNKED_DECHUNK",       REQUEST_CHUNKED_DECHUNK,    CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("REQUEST_CHUNKED_PASS",          REQUEST_CHUNKED_PASS,              CONST_CS | CONST_PERSISTENT);
       
       /* resolve types for remote_host() */
       REGISTER_LONG_CONSTANT("REMOTE_HOST",                   REMOTE_HOST,                CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("REMOTE_NAME",                   REMOTE_NAME,                CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("REMOTE_NOLOOKUP",        REMOTE_NOLOOKUP,            CONST_CS | CONST_PERSISTENT);
       REGISTER_LONG_CONSTANT("REMOTE_DOUBLE_REV",             REMOTE_DOUBLE_REV,          CONST_CS | CONST_PERSISTENT);
       
       return SUCCESS;
}

Here is the call graph for this function:

static PHP_MSHUTDOWN_FUNCTION ( apache  ) [static]

Definition at line 1510 of file php_apache.c.


Variable Documentation

Initial value:
 {









       PHP_FALIAS(getallheaders, apache_request_headers, arginfo_apachehooks__void)
       {NULL, NULL, NULL}
}

Definition at line 84 of file php_apache.c.

zend_module_entry apache_module_entry
Initial value:

Definition at line 1516 of file php_apache.c.

zend_class_entry* apacherequest_class_entry [static]

Definition at line 45 of file php_apache.c.

int le_apachereq [static]

Definition at line 44 of file php_apache.c.

Definition at line 34 of file php_apache.c.

Definition at line 1293 of file php_apache.c.