diff options
author | Daniel Beulshausen <dbeu@php.net> | 2001-01-03 11:41:31 +0000 |
---|---|---|
committer | Daniel Beulshausen <dbeu@php.net> | 2001-01-03 11:41:31 +0000 |
commit | 795025e0dcded54192b53128e0fb9d28621ea805 (patch) | |
tree | b0a8bcee03210bd39db81c6a498702ed87859c68 /ext/pdf | |
parent | c5da386dbd1b152701ce6873e3505e463c24fd0a (diff) | |
download | php-git-795025e0dcded54192b53128e0fb9d28621ea805.tar.gz |
fix bug 8341 & 8394
Diffstat (limited to 'ext/pdf')
-rw-r--r-- | ext/pdf/pdf.c | 10 |
1 files changed, 10 insertions, 0 deletions
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); |