X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_date_api.c;h=32efdfb8bc6b706c6af6c480d4dda2100c0a2fe1;hp=10f3463a437c8efd2ab5cee7636f8c22ba2815f9;hb=3d3fa591d770c2b046ff8f51e85bd8dafc1dfa56;hpb=db416fc4a150385aeb0c3eb4c2ae254057282b56 diff --git a/http_date_api.c b/http_date_api.c index 10f3463..32efdfb 100644 --- a/http_date_api.c +++ b/http_date_api.c @@ -159,7 +159,7 @@ PHP_HTTP_API char *_http_date(time_t t TSRMLS_DC) /* }}} */ /* {{{ time_t http_parse_date(char *) */ -PHP_HTTP_API time_t _http_parse_date(const char *date TSRMLS_DC) +PHP_HTTP_API time_t _http_parse_date_ex(const char *date, zend_bool silent TSRMLS_DC) { time_t t = -1; @@ -180,7 +180,7 @@ PHP_HTTP_API time_t _http_parse_date(const char *date TSRMLS_DC) putenv(tzput); #endif - if (-1 == t) { + if (-1 == t && !silent) { http_error_ex(HE_NOTICE, HTTP_E_RUNTIME, "Could not parse date: %s", date); }