X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=http_cache_api.c;h=7d61040fc75b1e891632f77f3a0b17b4bb856ba4;hb=cf9967800843ea01e77b374b4d78fad4bc18a3f6;hp=8df1ada23dbeafa9c75a4f40edcc52bd0ff810a7;hpb=0ac32c9b8590e88a5f110cc8b3154001d5c0c089;p=m6w6%2Fext-http diff --git a/http_cache_api.c b/http_cache_api.c index 8df1ada..7d61040 100644 --- a/http_cache_api.c +++ b/http_cache_api.c @@ -157,7 +157,7 @@ PHP_HTTP_API STATUS _http_cache_last_modified(time_t last_modified, if (SUCCESS == http_send_status(304)) { zend_bailout(); } else { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not send 304 Not Modified"); + http_error(E_WARNING, HTTP_E_HEADER, "Could not send 304 Not Modified"); return FAILURE; } } @@ -179,7 +179,7 @@ PHP_HTTP_API STATUS _http_cache_etag(const char *etag, size_t etag_len, if (SUCCESS == http_send_status(304)) { zend_bailout(); } else { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not send 304 Not Modified"); + http_error(E_WARNING, HTTP_E_HEADER, "Could not send 304 Not Modified"); return FAILURE; } } @@ -191,7 +191,7 @@ PHP_HTTP_API STATUS _http_cache_etag(const char *etag, size_t etag_len, HTTP_G(etag_started) = 1; return SUCCESS; } else { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not start ob_etaghandler"); + http_error(E_WARNING, HTTP_E_OBUFFER, "Could not start ob_etaghandler"); return FAILURE; } }