X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_client_curl.c;h=af77b92271a15f5c373e85d1944ddef0ae61ea07;hp=4056e9260ab9dbfb261c8be5ab04f13cb3c99b36;hb=34a2055472bf6640874dbb61d640f9901e1d02aa;hpb=39456918dd8c443592a2e3fe39f4b1525dc09948 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; } }