summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}
}
/* }}} */