From: Daniel Beulshausen Date: Wed, 3 Jan 2001 11:41:31 +0000 (+0000) Subject: fix bug 8341 & 8394 X-Git-Tag: php-4.0.5RC1~754 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=795025e0dcded54192b53128e0fb9d28621ea805;p=php fix bug 8341 & 8394 --- diff --git a/ext/pdf/pdf.c b/ext/pdf/pdf.c index 7fa837b761..34ba2eeedb 100644 --- a/ext/pdf/pdf.c +++ b/ext/pdf/pdf.c @@ -2339,7 +2339,9 @@ PHP_FUNCTION(pdf_open_gif) { 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 @@ PHP_FUNCTION(pdf_open_jpeg) { 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 @@ PHP_FUNCTION(pdf_open_png) { 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 @@ PHP_FUNCTION(pdf_open_tiff) { 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 @@ PHP_FUNCTION(pdf_open_image_file) { 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);