cvs: php4 /ext/pdf pdf.c
| From: | Ilia Alshanetsky | Date: | Mon, 02 Dec 2002 06:35:28 +0000 |
| Subject: | cvs: php4 /ext/pdf pdf.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-16832@lists.php.net to get a copy of this message | ||
iliaa Mon Dec 2 01:35:28 2002 EDT
Modified files:
/php4/ext/pdf pdf.c
Log:
Fixed a crash bug that can occur due to PDF_delete() being called more then
once and E_ERROR occurring during the shutdown sequence.
Index: php4/ext/pdf/pdf.c
diff -u php4/ext/pdf/pdf.c:1.112 php4/ext/pdf/pdf.c:1.113
--- php4/ext/pdf/pdf.c:1.112 Wed Sep 25 11:46:44 2002
+++ php4/ext/pdf/pdf.c Mon Dec 2 01:35:28 2002
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pdf.c,v 1.112 2002/09/25 15:46:44 wez Exp $ */
+/* $Id: pdf.c,v 1.113 2002/12/02 06:35:28 iliaa Exp $ */
/* pdflib 2.02 ... 3.0x is subject to the ALADDIN FREE PUBLIC LICENSE.
Copyright (C) 1997-1999 Thomas Merz. 2000-2001 PDFlib GmbH */
@@ -276,8 +276,7 @@
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);
}
}
/* }}} */
@@ -332,7 +331,7 @@
#else
php_info_print_table_row(2, "PDFlib GmbH Version", tmp );
#endif
- php_info_print_table_row(2, "Revision", "$Revision: 1.112 $" );
+ php_info_print_table_row(2, "Revision", "$Revision: 1.113 $" );
php_info_print_table_end();
}