From: Daniel Beulshausen Date: Wed, 3 Jan 2001 15:50:20 +0000 (+0000) Subject: fix filepath handling X-Git-Tag: php-4.0.5RC1~751 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f6a05ecb88ff2e974ca856780b59fcfea4fd304;p=php fix filepath handling --- diff --git a/ext/pdf/pdf.c b/ext/pdf/pdf.c index 34ba2eeedb..9b80193885 100644 --- a/ext/pdf/pdf.c +++ b/ext/pdf/pdf.c @@ -2341,6 +2341,8 @@ PHP_FUNCTION(pdf_open_gif) { #ifdef VIRTUAL_DIR virtual_filepath((*arg2)->value.str.val, &image); +#else + image = (*arg2)->value.str.val; #endif pdf_image = PDF_open_image_file(pdf, "gif", image, "", 0); @@ -2380,6 +2382,8 @@ PHP_FUNCTION(pdf_open_jpeg) { #ifdef VIRTUAL_DIR virtual_filepath((*arg2)->value.str.val, &image); +#else + image = (*arg2)->value.str.val; #endif pdf_image = PDF_open_image_file(pdf, "jpeg", image, "", 0); @@ -2419,6 +2423,8 @@ PHP_FUNCTION(pdf_open_png) { #ifdef VIRTUAL_DIR virtual_filepath((*arg2)->value.str.val, &image); +#else + image = (*arg2)->value.str.val; #endif pdf_image = PDF_open_image_file(pdf, "png", image, "", 0); @@ -2458,6 +2464,8 @@ PHP_FUNCTION(pdf_open_tiff) { #ifdef VIRTUAL_DIR virtual_filepath((*arg2)->value.str.val, &image); +#else + image = (*arg2)->value.str.val; #endif pdf_image = PDF_open_image_file(pdf, "tiff", image, "", 0); @@ -2498,6 +2506,8 @@ PHP_FUNCTION(pdf_open_image_file) { #ifdef VIRTUAL_DIR virtual_filepath((*arg3)->value.str.val, &image); +#else + image = (*arg3)->value.str.val; #endif pdf_image = PDF_open_image_file(pdf, (*arg2)->value.str.val, image, "", 0);