Lines Matching refs:var_len
172 unsigned int var_len; member
328 static char* fcgi_hash_set(fcgi_hash *h, unsigned int hash_value, char *var, unsigned int var_len, … in fcgi_hash_set() argument
335 p->var_len == var_len && in fcgi_hash_set()
336 memcmp(p->var, var, var_len) == 0) { in fcgi_hash_set()
358 p->var_len = var_len; in fcgi_hash_set()
359 p->var = fcgi_hash_strndup(h, var, var_len); in fcgi_hash_set()
365 static void fcgi_hash_del(fcgi_hash *h, unsigned int hash_value, char *var, unsigned int var_len) in fcgi_hash_del() argument
372 (*p)->var_len == var_len && in fcgi_hash_del()
373 memcmp((*p)->var, var, var_len) == 0) { in fcgi_hash_del()
384 static char *fcgi_hash_get(fcgi_hash *h, unsigned int hash_value, char *var, unsigned int var_len, … in fcgi_hash_get() argument
391 p->var_len == var_len && in fcgi_hash_get()
392 memcmp(p->var, var, var_len) == 0) { in fcgi_hash_get()
407 func(p->var, p->var_len, p->val, p->val_len, arg); in fcgi_hash_apply()
1169 if ((value = zend_hash_str_find(&fcgi_mgmt_vars, q->var, q->var_len)) == NULL) {
1174 if ((p + 4 + 4 + q->var_len + zlen) >= (buf + sizeof(buf))) {
1177 if (q->var_len < 0x80) {
1178 *p++ = q->var_len;
1180 *p++ = ((q->var_len >> 24) & 0xff) | 0x80;
1181 *p++ = (q->var_len >> 16) & 0xff;
1182 *p++ = (q->var_len >> 8) & 0xff;
1183 *p++ = q->var_len & 0xff;
1193 memcpy(p, q->var, q->var_len);
1194 p += q->var_len;
1676 char* fcgi_getenv(fcgi_request *req, const char* var, int var_len) argument
1682 return fcgi_hash_get(&req->env, FCGI_HASH_FUNC(var, var_len), (char*)var, var_len, &val_len);
1685 char* fcgi_quick_getenv(fcgi_request *req, const char* var, int var_len, unsigned int hash_value) argument
1689 return fcgi_hash_get(&req->env, hash_value, (char*)var, var_len, &val_len);
1692 char* fcgi_putenv(fcgi_request *req, char* var, int var_len, char* val) argument
1696 fcgi_hash_del(&req->env, FCGI_HASH_FUNC(var, var_len), var, var_len);
1699 …return fcgi_hash_set(&req->env, FCGI_HASH_FUNC(var, var_len), var, var_len, val, (unsigned int)str…
1703 char* fcgi_quick_putenv(fcgi_request *req, char* var, int var_len, unsigned int hash_value, char* v… argument
1706 fcgi_hash_del(&req->env, hash_value, var, var_len);
1709 return fcgi_hash_set(&req->env, hash_value, var, var_len, val, (unsigned int)strlen(val));