- we pass the file name as char* not zval* in http_etag() and http_last_modified()
authorMichael Wallner <mike@php.net>
Fri, 19 Aug 2005 14:57:43 +0000 (14:57 +0000)
committerMichael Wallner <mike@php.net>
Fri, 19 Aug 2005 14:57:43 +0000 (14:57 +0000)
http_cache_api.c

index 43540b39de06a17d3bbf125e77cb51eeb7748cdd..109a568372352e4877ffbb79136a540da70a2a5b 100644 (file)
@@ -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;
        }
 }
 /* }}} */