]> granicus.if.org Git - php/commitdiff
- fixed compilation error
authorUwe Steinmann <steinm@php.net>
Wed, 7 Jun 2000 20:01:12 +0000 (20:01 +0000)
committerUwe Steinmann <steinm@php.net>
Wed, 7 Jun 2000 20:01:12 +0000 (20:01 +0000)
ext/pdf/pdf.c

index a24083d5c71db4f739de4578194e575e8b532869..d461b1d68b37db982e6207c778c026825c70ddbb 100644 (file)
@@ -720,7 +720,7 @@ PHP_FUNCTION(pdf_get_font) {
                RETURN_FALSE;
        }
        
-       font = (int) PDF_get_value(pdf, "font");
+       font = (int) PDF_get_value(pdf, "font", 0);
 
        RETURN_LONG(font);
 }
@@ -747,7 +747,7 @@ PHP_FUNCTION(pdf_get_fontname) {
                RETURN_FALSE;
        }
        
-       fontname = (char *) PDF_get_parameter(pdf, "fontname");
+       fontname = (char *) PDF_get_parameter(pdf, "fontname", 0);
 
        RETURN_STRING(fontname, 1);
 }
@@ -774,7 +774,7 @@ PHP_FUNCTION(pdf_get_fontsize) {
                RETURN_FALSE;
        }
        
-       fontsize = PDF_get_value(pdf, "fontsize");
+       fontsize = PDF_get_value(pdf, "fontsize", 0);
 
        RETURN_DOUBLE(fontsize);
 }