Lines Matching refs:var_len
176 unsigned int var_len; member
332 static char* fcgi_hash_set(fcgi_hash *h, unsigned int hash_value, char *var, unsigned int var_len, … in fcgi_hash_set() argument
339 p->var_len == var_len && in fcgi_hash_set()
340 memcmp(p->var, var, var_len) == 0) { in fcgi_hash_set()
362 p->var_len = var_len; in fcgi_hash_set()
363 p->var = fcgi_hash_strndup(h, var, var_len); in fcgi_hash_set()
369 static void fcgi_hash_del(fcgi_hash *h, unsigned int hash_value, char *var, unsigned int var_len) in fcgi_hash_del() argument
376 (*p)->var_len == var_len && in fcgi_hash_del()
377 memcmp((*p)->var, var, var_len) == 0) { in fcgi_hash_del()
388 static char *fcgi_hash_get(fcgi_hash *h, unsigned int hash_value, char *var, unsigned int var_len, … in fcgi_hash_get() argument
395 p->var_len == var_len && in fcgi_hash_get()
396 memcmp(p->var, var, var_len) == 0) { in fcgi_hash_get()
411 func(p->var, p->var_len, p->val, p->val_len, arg); in fcgi_hash_apply()
1174 if ((value = zend_hash_str_find(&fcgi_mgmt_vars, q->var, q->var_len)) == NULL) { in fcgi_read_request()
1179 if ((p + 4 + 4 + q->var_len + zlen) >= (buf + sizeof(buf))) { in fcgi_read_request()
1182 if (q->var_len < 0x80) { in fcgi_read_request()
1183 *p++ = q->var_len; in fcgi_read_request()
1185 *p++ = ((q->var_len >> 24) & 0xff) | 0x80; in fcgi_read_request()
1186 *p++ = (q->var_len >> 16) & 0xff; in fcgi_read_request()
1187 *p++ = (q->var_len >> 8) & 0xff; in fcgi_read_request()
1188 *p++ = q->var_len & 0xff; in fcgi_read_request()
1198 memcpy(p, q->var, q->var_len); in fcgi_read_request()
1199 p += q->var_len; in fcgi_read_request()
1680 char* fcgi_getenv(fcgi_request *req, const char* var, int var_len) argument
1686 return fcgi_hash_get(&req->env, FCGI_HASH_FUNC(var, var_len), (char*)var, var_len, &val_len);
1689 char* fcgi_quick_getenv(fcgi_request *req, const char* var, int var_len, unsigned int hash_value) argument
1693 return fcgi_hash_get(&req->env, hash_value, (char*)var, var_len, &val_len);
1696 char* fcgi_putenv(fcgi_request *req, char* var, int var_len, char* val) argument
1700 fcgi_hash_del(&req->env, FCGI_HASH_FUNC(var, var_len), var, var_len);
1703 …return fcgi_hash_set(&req->env, FCGI_HASH_FUNC(var, var_len), var, var_len, val, (unsigned int)str…
1707 char* fcgi_quick_putenv(fcgi_request *req, char* var, int var_len, unsigned int hash_value, char* v… argument
1710 fcgi_hash_del(&req->env, hash_value, var, var_len);
1713 return fcgi_hash_set(&req->env, hash_value, var, var_len, val, (unsigned int)strlen(val));