summaryrefslogtreecommitdiff
path: root/ext/pdf
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2002-12-02 06:35:29 +0000
committerIlia Alshanetsky <iliaa@php.net>2002-12-02 06:35:29 +0000
commita6e02dc45dd82e08f26602e5cdc0a6819aa539d6 (patch)
treeae565a3f1b7003f85f3a49fec6d00f865985494c /ext/pdf
parent5e1741fd486c44e3e58ff0dc416dab10931db2ac (diff)
downloadphp-git-a6e02dc45dd82e08f26602e5cdc0a6819aa539d6.tar.gz
Fixed a crash bug that can occur due to PDF_delete() being called more then
once and E_ERROR occurring during the shutdown sequence.
Diffstat (limited to 'ext/pdf')
-rw-r--r--ext/pdf/pdf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/pdf/pdf.c b/ext/pdf/pdf.c
index ce169f7bdd..682daea17f 100644
--- a/ext/pdf/pdf.c
+++ b/ext/pdf/pdf.c
@@ -276,8 +276,7 @@ static void custom_errorhandler(PDF *p, int type, const char *shortmsg)
case PDF_SystemError:
case PDF_UnknownError:
default:
- if (p !=NULL) PDF_delete(p); /* clean up PDFlib */
- php_error(E_ERROR,"PDFlib error: %s", shortmsg);
+ php_error(E_WARNING,"PDFlib error: %s", shortmsg);
}
}
/* }}} */