summaryrefslogtreecommitdiff
path: root/ext/hyperwave/hw.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/hyperwave/hw.c')
-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;
}