summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Schaaf <rjs@php.net>2001-02-21 23:30:21 +0000
committerRainer Schaaf <rjs@php.net>2001-02-21 23:30:21 +0000
commit28ed45fa72cfc938375808b2617d2124f0fcb480 (patch)
treead569dabf05584ac1d21e76869d9690f6bbe7171
parent09c7116f6ef6bf4b4031395dbbed42f6d67e2aa4 (diff)
downloadphp-git-28ed45fa72cfc938375808b2617d2124f0fcb480.tar.gz
When using pdf_get_buffer() and doing a correct cleanup by calling pdf_delete()
this always resulted in a coredump (after everything was finished, so only visible in the logfile). So it seems to be neccesary to copy the contents of the result of get_buffer, to avoid this coredump.
-rw-r--r--ext/pdf/pdf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdf/pdf.c b/ext/pdf/pdf.c
index c8bc728301..7519bc43b0 100644
--- a/ext/pdf/pdf.c
+++ b/ext/pdf/pdf.c
@@ -2176,7 +2176,7 @@ PHP_FUNCTION(pdf_get_buffer) {
buffer = PDF_get_buffer(pdf, &size);
- RETURN_STRINGL((char *)buffer, size, 0);
+ RETURN_STRINGL((char *)buffer, size, 1);
}
/* }}} */