X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_message_api.c;h=17f6c7796a18f003336212521affb5a1dd2ba86d;hb=63e96c83845faff53b96159a6a7ff6582174371c;hp=c78c09fba31503f37ee15a439565c93202f381fe;hpb=e08f4f1d3a0d0c2f728f0b73954fe6a0ac68daa8;p=m6w6%2Fext-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; }