summaryrefslogtreecommitdiff
path: root/ext/hyperwave/hw.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-03-16 13:48:57 +0000
committerWez Furlong <wez@php.net>2002-03-16 13:48:57 +0000
commit30647934a477f876992c3390ce483bb55a3eee51 (patch)
treef6b85a5d08e90028538485c8a0addadd0f0a62c2 /ext/hyperwave/hw.c
parentd4e63bc5bf1dacce00f317bc2b3b759f6f6138d7 (diff)
downloadphp-git-30647934a477f876992c3390ce483bb55a3eee51.tar.gz
Tweak the API to be more consistent.
Update docs.
Diffstat (limited to 'ext/hyperwave/hw.c')
-rw-r--r--ext/hyperwave/hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/hyperwave/hw.c b/ext/hyperwave/hw.c
index 006a8f2209..978a1915c0 100644
--- a/ext/hyperwave/hw.c
+++ b/ext/hyperwave/hw.c
@@ -2892,7 +2892,7 @@ PHP_FUNCTION(hw_new_document_from_file)
if(NULL == doc)
RETURN_FALSE;
- doc->size = php_stream_read_all(stream, &doc->data, 1);
+ doc->size = php_stream_copy_to_mem(stream, &doc->data, PHP_STREAM_COPY_ALL, 1);
php_stream_close(stream);