ZVAL_STRINGL(&ex_del, ",", 1, 0);
array_init(&ex_arr);
- php_explode(&ex_del, accept, &ex_arr, -1);
+ php_explode(&ex_del, accept, &ex_arr, INT_MAX);
if (zend_hash_num_elements(Z_ARRVAL(ex_arr)) > 0) {
int i = 0;
http_get_request_headers(NULL);
name = pretty_key(estrndup(header, name_len), name_len, 1, 1);
if (SUCCESS == zend_hash_find(HTTP_G->request.headers, name, name_len+1, (void *) &data)) {
- zvalue = zval_copy(IS_STRING, *data);
+ zvalue = http_zsep(IS_STRING, *data);
result = (match_case ? strcmp(Z_STRVAL_P(zvalue), value) : strcasecmp(Z_STRVAL_P(zvalue), value)) ? 0 : 1;
- zval_free(&zvalue);
+ zval_ptr_dtor(&zvalue);
}
efree(name);