no need to "cache" the request TS for a long time now
[m6w6/ext-http] / php_http_client_curl.c
index 4056e9260ab9dbfb261c8be5ab04f13cb3c99b36..af77b92271a15f5c373e85d1944ddef0ae61ea07 100644 (file)
@@ -903,7 +903,7 @@ static STATUS php_http_curle_option_set_lastmodified(php_http_option_t *opt, zva
                                return FAILURE;
                        }
                } else {
-                       if (CURLE_OK != curl_easy_setopt(ch, CURLOPT_TIMEVALUE, (long) PHP_HTTP_G->env.request.time + Z_LVAL_P(val))) {
+                       if (CURLE_OK != curl_easy_setopt(ch, CURLOPT_TIMEVALUE, (long) sapi_get_request_time(TSRMLS_C) + Z_LVAL_P(val))) {
                                return FAILURE;
                        }
                }