summaryrefslogtreecommitdiff
path: root/ext/hyperwave
diff options
context:
space:
mode:
authorUwe Steinmann <steinm@php.net>1999-12-14 12:50:21 +0000
committerUwe Steinmann <steinm@php.net>1999-12-14 12:50:21 +0000
commit7af301be55f0dd66663516bf2ee56ffa5b5caf9c (patch)
treecd695f515e4610bffe1f2d3c45aafaa2aa544a6f /ext/hyperwave
parent32486ef0b3a9f787adc6b0320e7763325a2a04c7 (diff)
downloadphp-git-7af301be55f0dd66663516bf2ee56ffa5b5caf9c.tar.gz
always check if output is ok after php3_header()
Diffstat (limited to 'ext/hyperwave')
-rw-r--r--ext/hyperwave/hw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/hyperwave/hw.c b/ext/hyperwave/hw.c
index 80a37b61d8..9531a6b15c 100644
--- a/ext/hyperwave/hw.c
+++ b/ext/hyperwave/hw.c
@@ -2513,8 +2513,8 @@ PHP_FUNCTION(hw_output_document) {
RETURN_FALSE;
}
- php3_header();
- php3_write(ptr->data, ptr->size);
+ if(php3_header())
+ php3_write(ptr->data, ptr->size);
RETURN_TRUE;
}