diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2002-12-02 06:35:29 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2002-12-02 06:35:29 +0000 |
commit | a6e02dc45dd82e08f26602e5cdc0a6819aa539d6 (patch) | |
tree | ae565a3f1b7003f85f3a49fec6d00f865985494c /ext/pdf | |
parent | 5e1741fd486c44e3e58ff0dc416dab10931db2ac (diff) | |
download | php-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.c | 3 |
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); } } /* }}} */ |