From: Michael Wallner Date: Thu, 28 Jun 2007 19:55:51 +0000 (+0000) Subject: - MFH: atof -> zend_strtod (locale agnositcism) X-Git-Tag: RELEASE_1_5_4~2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=63e96c83845faff53b96159a6a7ff6582174371c;p=m6w6%2Fext-http - MFH: atof -> zend_strtod (locale agnositcism) --- 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++; diff --git a/http_info_api.c b/http_info_api.c index 9cd8fbe..bd297df 100644 --- a/http_info_api.c +++ b/http_info_api.c @@ -89,7 +89,7 @@ PHP_HTTP_API STATUS _http_info_parse_ex(const char *pre_header, http_info *info, } #endif - info->http.version = atof(http + lenof("HTTP/")); + info->http.version = zend_strtod(http + lenof("HTTP/"), NULL); /* is response */ if (pre_header == http) { diff --git a/http_message_api.c b/http_message_api.c index c78c09f..17f6c77 100644 --- a/http_message_api.c +++ b/http_message_api.c @@ -92,7 +92,7 @@ PHP_HTTP_API http_message *_http_message_init_env(http_message *message, http_me 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; }