- odd shell fixes
[m6w6/ext-http] / http_headers_api.c
index 87af7586e114887ad29c89b7ba968c03e313cf66..dbbf999040157b17fef8152baedd7f38ea77c0b1 100644 (file)
@@ -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++;