summaryrefslogtreecommitdiff
path: root/ext/standard/http_fopen_wrapper.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-03-28 00:49:00 +0000
committerWez Furlong <wez@php.net>2002-03-28 00:49:00 +0000
commit2539cbc74c4f2cca2f39f99b2d679bb4e329b53d (patch)
tree380105fca3acb74ef0b27723c4207856767e67ea /ext/standard/http_fopen_wrapper.c
parentfa4341dcdff116be55081b5782e2c027b2421b9b (diff)
downloadphp-git-2539cbc74c4f2cca2f39f99b2d679bb4e329b53d.tar.gz
Phase 3 of OO wrapper cleanup
# What was phase 2?
Diffstat (limited to 'ext/standard/http_fopen_wrapper.c')
-rw-r--r--ext/standard/http_fopen_wrapper.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c
index 2f566bd1b3..c96f43ddff 100644
--- a/ext/standard/http_fopen_wrapper.c
+++ b/ext/standard/http_fopen_wrapper.c
@@ -70,7 +70,6 @@
#define HTTP_HEADER_BLOCK_SIZE 1024
-
php_stream *php_stream_url_wrap_http(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path STREAMS_DC TSRMLS_DC)
{
php_stream *stream = NULL;
@@ -309,8 +308,21 @@ out:
return stream;
}
+static int php_stream_http_stream_stat(php_stream_wrapper *wrapper,
+ php_stream *stream,
+ php_stream_statbuf *ssb
+ TSRMLS_DC)
+{
+ /* one day, we could fill in the details based on Date: and Content-Length:
+ * headers. For now, we return with a failure code to prevent the underlying
+ * file's details from being used instead. */
+ return -1;
+}
+
static php_stream_wrapper_ops http_stream_wops = {
php_stream_url_wrap_http,
+ NULL,
+ php_stream_http_stream_stat,
NULL
};