projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
f475c8d
)
- we pass the file name as char* not zval* in http_etag() and http_last_modified()
author
Michael Wallner
<mike@php.net>
Fri, 19 Aug 2005 14:57:43 +0000
(14:57 +0000)
committer
Michael Wallner
<mike@php.net>
Fri, 19 Aug 2005 14:57:43 +0000
(14:57 +0000)
http_cache_api.c
patch
|
blob
|
history
diff --git
a/http_cache_api.c
b/http_cache_api.c
index 43540b39de06a17d3bbf125e77cb51eeb7748cdd..109a568372352e4877ffbb79136a540da70a2a5b 100644
(file)
--- 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:
{
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;
}
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;
{
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;
}
}
/* }}} */
}
}
/* }}} */