Home
last modified time | relevance | path

Searched refs:var_len (Results 1 – 13 of 13) sorted by relevance

/php-src/main/
H A Dfastcgi.h29 #define FCGI_HASH_FUNC(var, var_len) \ argument
30 (UNEXPECTED(var_len < 3) ? (unsigned int)var_len : \
32 (((unsigned int)var[var_len-2]) << 4) + \
33 (((unsigned int)var[var_len-1]) << 2) + \
34 var_len)
78 typedef void (*fcgi_apply_func)(const char *var, unsigned int var_len, char *val, unsigned int val_…
109 char* fcgi_getenv(fcgi_request *req, const char* var, int var_len);
110 char* fcgi_putenv(fcgi_request *req, char* var, int var_len, char* val);
111 char* fcgi_quick_getenv(fcgi_request *req, const char* var, int var_len, unsigned int hash_value);
112 char* fcgi_quick_putenv(fcgi_request *req, char* var, int var_len, unsigned int hash_value, char* v…
H A Dfastcgi.c170 unsigned int var_len; member
333 p->var_len == var_len && in fcgi_hash_set()
356 p->var_len = var_len; in fcgi_hash_set()
370 (*p)->var_len == var_len && in fcgi_hash_del()
389 p->var_len == var_len && in fcgi_hash_get()
1170 if (q->var_len < 0x80) { in fcgi_read_request()
1171 *p++ = q->var_len; in fcgi_read_request()
1175 *p++ = (q->var_len >> 8) & 0xff; in fcgi_read_request()
1176 *p++ = q->var_len & 0xff; in fcgi_read_request()
1679 return fcgi_hash_get(&req->env, FCGI_HASH_FUNC(var, var_len), (char*)var, var_len, &val_len);
[all …]
H A Dphp_variables.h39 PHPAPI void php_register_known_variable(const char *var, size_t var_len, zval *value, zval *track_v…
H A Dphp_variables.c114 size_t var_len, index_len; in php_register_variable_ex() local
141 var_len = strlen(var_name); in php_register_variable_ex()
142 var = var_orig = do_alloca(var_len + 1, use_heap); in php_register_variable_ex()
143 memcpy(var_orig, var_name, var_len + 1); in php_register_variable_ex()
156 var_len = p - var; in php_register_variable_ex()
158 if (var_len==0) { /* empty variable name, or variable name with a space in it */ in php_register_variable_ex()
164 if (var_len == sizeof("this")-1 && EG(current_execute_data)) { in php_register_variable_ex()
186 var_len == sizeof("GLOBALS")-1 && in php_register_variable_ex()
194 index_len = var_len; in php_register_variable_ex()
208 zend_symtable_str_del(ht, var, var_len); in php_register_variable_ex()
H A DSAPI.c1110 SAPI_API void sapi_add_request_header(const char *var, unsigned int var_len, char *val, unsigned in… in sapi_add_request_header() argument
1117 if (var_len > 5 && in sapi_add_request_header()
1127 var_len -= 5; in sapi_add_request_header()
1129 var = str = buf = do_alloca(var_len + 1, use_heap); in sapi_add_request_header()
1145 } else if (var_len == sizeof("CONTENT_TYPE")-1 && in sapi_add_request_header()
1148 } else if (var_len == sizeof("CONTENT_LENGTH")-1 && in sapi_add_request_header()
1154 add_assoc_stringl_ex(return_value, var, var_len, val, val_len); in sapi_add_request_header()
H A DSAPI.h171 SAPI_API void sapi_add_request_header(const char *var, unsigned int var_len, char *val, unsigned in…
/php-src/ext/dl_test/
H A Ddl_test.c41 size_t var_len = sizeof("World") - 1; in PHP_FUNCTION() local
46 Z_PARAM_STRING(var, var_len) in PHP_FUNCTION()
82 size_t var_len = sizeof("World") - 1; in PHP_INI_END() local
87 Z_PARAM_STRING(var, var_len) in PHP_INI_END()
/php-src/ext/skeleton/
H A Dskeleton.c29 size_t var_len = sizeof("World") - 1; in PHP_FUNCTION() local
34 Z_PARAM_STRING(var, var_len) in PHP_FUNCTION()
/php-src/docs-old/
H A Dinput-filter.md98 int var_len;
132 var_len = strlen(var);
133 raw_var = emalloc(var_len+5); /* RAW_ and a \0 */
135 strlcat(raw_var,var,var_len+5);
149 int var_len;
153 if(zend_parse_parameters(2, "ls", &arg, &var, &var_len) == FAILURE) {
173 if(zend_hash_find(HASH_OF(array_ptr), var, var_len+5, (void **)&tmp) == SUCCESS) {
/php-src/sapi/cgi/
H A Dcgi_main.c1592 zend_ulong var_len; local
1599 var_len = val - *env;
1600 if (var_len >= alloc_size) {
1601 alloc_size = var_len + 64;
1605 if (var_len > 5 &&
1612 var_len -= 5;
1614 if (var_len >= alloc_size) {
1615 alloc_size = var_len + 64;
1642 } else if (var_len == sizeof("CONTENT_TYPE")-1 &&
1645 } else if (var_len == sizeof("CONTENT_LENGTH")-1 &&
[all …]
/php-src/sapi/fpm/fpm/
H A Dfpm_main.c505 static void cgi_php_load_env_var(const char *var, unsigned int var_len, char *val, unsigned int val… in cgi_php_load_env_var() argument
517 static void cgi_php_load_env_var_unfilterd(const char *var, unsigned int var_len, char *val, unsign… in cgi_php_load_env_var_unfilterd() argument
/php-src/ext/standard/
H A Dfilters.c1141 #define GET_STR_PROP(ht, var, var_len, fldname, persistent) \ argument
1142 php_conv_get_string_prop_ex(ht, &var, &var_len, fldname, sizeof(fldname), persistent)
H A Dbasic_functions.c2030 #define _CHECK_PATH(var, var_len, ini) php_ini_check_path(var, var_len, ini, sizeof(ini)) argument

Completed in 78 milliseconds