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()
1171 if ((value = zend_hash_str_find(&fcgi_mgmt_vars, q->var, q->var_len)) == NULL) { in fcgi_read_request()
1176 if ((p + 4 + 4 + q->var_len + zlen) >= (buf + sizeof(buf))) { in fcgi_read_request()
1179 if (q->var_len < 0x80) { in fcgi_read_request()
1180 *p++ = q->var_len; in fcgi_read_request()
1182 *p++ = ((q->var_len >> 24) & 0xff) | 0x80; in fcgi_read_request()
1183 *p++ = (q->var_len >> 16) & 0xff; in fcgi_read_request()
1184 *p++ = (q->var_len >> 8) & 0xff; in fcgi_read_request()
1185 *p++ = q->var_len & 0xff; in fcgi_read_request()
1195 memcpy(p, q->var, q->var_len); in fcgi_read_request()
1196 p += q->var_len; in fcgi_read_request()
1677 char* fcgi_getenv(fcgi_request *req, const char* var, int var_len) argument
1683 return fcgi_hash_get(&req->env, FCGI_HASH_FUNC(var, var_len), (char*)var, var_len, &val_len);
1686 char* fcgi_quick_getenv(fcgi_request *req, const char* var, int var_len, unsigned int hash_value) argument
1690 return fcgi_hash_get(&req->env, hash_value, (char*)var, var_len, &val_len);
1693 char* fcgi_putenv(fcgi_request *req, char* var, int var_len, char* val) argument
1697 fcgi_hash_del(&req->env, FCGI_HASH_FUNC(var, var_len), var, var_len);
1700 …return fcgi_hash_set(&req->env, FCGI_HASH_FUNC(var, var_len), var, var_len, val, (unsigned int)str…
1704 char* fcgi_quick_putenv(fcgi_request *req, char* var, int var_len, unsigned int hash_value, char* v… argument
1707 fcgi_hash_del(&req->env, hash_value, var, var_len);
1710 return fcgi_hash_set(&req->env, hash_value, var, var_len, val, (unsigned int)strlen(val));