From: Michael Wallner Date: Fri, 19 Aug 2005 14:57:43 +0000 (+0000) Subject: - we pass the file name as char* not zval* in http_etag() and http_last_modified() X-Git-Tag: RELEASE_0_12_0~27 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=d36da8206d10ff49fd0123ab67f976ca29cb5ba9;p=m6w6%2Fext-http - we pass the file name as char* not zval* in http_etag() and http_last_modified() --- 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; } } /* }}} */