X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_headers_api.c;h=dbbf999040157b17fef8152baedd7f38ea77c0b1;hp=87af7586e114887ad29c89b7ba968c03e313cf66;hb=64b997ebfc4eab485a8ea04c633e3a5b6c32a1ff;hpb=76e122adc1282ee43b222d5f3dbec2a11fe29ca5 diff --git a/http_headers_api.c b/http_headers_api.c index 87af758..dbbf999 100644 --- a/http_headers_api.c +++ b/http_headers_api.c @@ -156,7 +156,7 @@ PHP_HTTP_API HashTable *_http_negotiate_q(const char *header, HashTable *support while (*++ptr && !HTTP_IS_CTYPE(digit, *ptr) && '.' != *ptr); - quality = atof(ptr); + quality = zend_strtod(ptr, NULL); identifier = estrndup(Z_STRVAL_PP(entry), ident_len = separator - Z_STRVAL_PP(entry)); } else { quality = 1000.0 - i++;