From d36da8206d10ff49fd0123ab67f976ca29cb5ba9 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Fri, 19 Aug 2005 14:57:43 +0000 Subject: [PATCH] - we pass the file name as char* not zval* in http_etag() and http_last_modified() --- http_cache_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http_cache_api.c b/http_cache_api.c index 43540b3..109a568 100644 --- a/http_cache_api.c +++ b/http_cache_api.c @@ -89,7 +89,7 @@ PHP_HTTP_API char *_http_etag(const void *data_ptr, size_t data_len, http_send_m default: { - if (php_stream_stat_path(Z_STRVAL_P((zval *) data_ptr), &ssb)) { + if (php_stream_stat_path((char *) data_ptr, &ssb)) { efree(new_etag); return NULL; } @@ -116,7 +116,7 @@ PHP_HTTP_API time_t _http_last_modified(const void *data_ptr, http_send_mode dat { case SEND_DATA: return time(NULL); case SEND_RSRC: return php_stream_stat((php_stream *) data_ptr, &ssb) ? 0 : ssb.sb.st_mtime; - default: return php_stream_stat_path(Z_STRVAL_P((zval *) data_ptr), &ssb) ? 0 : ssb.sb.st_mtime; + default: return php_stream_stat_path((char *) data_ptr, &ssb) ? 0 : ssb.sb.st_mtime; } } /* }}} */ -- 2.30.2