mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
fix bug 8341 & 8394
This commit is contained in:
parent
c5da386dbd
commit
795025e0dc
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user