X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_client_curl.c;fp=php_http_client_curl.c;h=af77b92271a15f5c373e85d1944ddef0ae61ea07;hp=4056e9260ab9dbfb261c8be5ab04f13cb3c99b36;hb=f823ed714484edce075fe39485355f38684daa1e;hpb=4b0c4ea2859d09325e6e4462c2be94b0544b79ee diff --git a/php_http_client_curl.c b/php_http_client_curl.c index 4056e92..af77b92 100644 --- a/php_http_client_curl.c +++ b/php_http_client_curl.c @@ -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; } }