[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/pdf pdf.c From: Andi Gutmans (andi <email protected>)
Date: 01/03/01

You need to free the image string at the end.
Can the pdf API receive an fd or FILE *? In this case you would save all of
these #ifdef VIRTUAL_DIR's.

Andi

At 11:41 AM 1/3/2001 +0000, you wrote:
>dbeu Wed Jan 3 03:41:31 2001 EDT
>
> Modified files:
> /php4/ext/pdf pdf.c
> Log:
> fix bug 8341 & 8394
>
>Index: php4/ext/pdf/pdf.c
>diff -u php4/ext/pdf/pdf.c:1.61 php4/ext/pdf/pdf.c:1.62
>--- php4/ext/pdf/pdf.c:1.61 Mon Nov 20 23:07:53 2000
>+++ php4/ext/pdf/pdf.c Wed Jan 3 03:41:30 2001
>@@ -27,7 +27,7 @@
> +----------------------------------------------------------------------+
> */
>
>-/* $Id: pdf.c,v 1.61 2000/11/21 07:07:53 dbeu Exp $ */
>+/* $Id: pdf.c,v 1.62 2001/01/03 11:41:30 dbeu Exp $ */
>
> /* pdflib 2.02 is subject to the ALADDIN FREE PUBLIC LICENSE.
> Copyright (C) 1997 Thomas Merz. */
>@@ -2339,7 +2339,9 @@
> RETURN_FALSE;
> }
>
>+#ifdef VIRTUAL_DIR
> virtual_filepath((*arg2)->value.str.val, &image);
>+#endif
>
> pdf_image = PDF_open_image_file(pdf, "gif", image, "", 0);
>
>@@ -2376,7 +2378,9 @@
> RETURN_FALSE;
> }
>
>+#ifdef VIRTUAL_DIR
> virtual_filepath((*arg2)->value.str.val, &image);
>+#endif
>
> pdf_image = PDF_open_image_file(pdf, "jpeg", image, "", 0);
>
>@@ -2413,7 +2417,9 @@
> RETURN_FALSE;
> }
>
>+#ifdef VIRTUAL_DIR
> virtual_filepath((*arg2)->value.str.val, &image);
>+#endif
>
> pdf_image = PDF_open_image_file(pdf, "png", image, "", 0);
>
>@@ -2450,7 +2456,9 @@
> RETURN_FALSE;
> }
>
>+#ifdef VIRTUAL_DIR
> virtual_filepath((*arg2)->value.str.val, &image);
>+#endif
>
> pdf_image = PDF_open_image_file(pdf, "tiff", image, "", 0);
>
>@@ -2488,7 +2496,9 @@
> RETURN_FALSE;
> }
>
>+#ifdef VIRTUAL_DIR
> virtual_filepath((*arg3)->value.str.val, &image);
>+#endif
>
> pdf_image = PDF_open_image_file(pdf, (*arg2)->value.str.val,
> image, "", 0);
>
>
>
>
>--
>PHP CVS Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-cvs-unsubscribe <email protected>
>For additional commands, e-mail: php-cvs-help <email protected>
>To contact the list administrators, e-mail: php-list-admin <email protected>

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>