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++;
}
#endif
- info->http.version = atof(http + lenof("HTTP/"));
+ info->http.version = zend_strtod(http + lenof("HTTP/"), NULL);
/* is response */
if (pre_header == http) {
switch (inf.type = type) {
case HTTP_MSG_REQUEST:
if ((sval = http_get_server_var("SERVER_PROTOCOL", 1)) && !strncmp(Z_STRVAL_P(sval), "HTTP/", lenof("HTTP/"))) {
- inf.http.version = atof(Z_STRVAL_P(sval) + lenof("HTTP/"));
+ inf.http.version = zend_strtod(Z_STRVAL_P(sval) + lenof("HTTP/"), NULL);
} else {
inf.http.version = 1.1;
}