]> granicus.if.org Git - php/commitdiff
fix filepath handling
authorDaniel Beulshausen <dbeu@php.net>
Wed, 3 Jan 2001 15:50:20 +0000 (15:50 +0000)
committerDaniel Beulshausen <dbeu@php.net>
Wed, 3 Jan 2001 15:50:20 +0000 (15:50 +0000)
ext/pdf/pdf.c

index 34ba2eeedbd52ac4075d728a3b20fb52016bedd3..9b80193885ae49f82f66bc2a4eae2d927d9dd5dc 100644 (file)
@@ -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);