]> granicus.if.org Git - php/commitdiff
I missed this function..
authorfoobar <sniper@php.net>
Wed, 3 Jan 2001 16:53:00 +0000 (16:53 +0000)
committerfoobar <sniper@php.net>
Wed, 3 Jan 2001 16:53:00 +0000 (16:53 +0000)
ext/pdf/pdf.c

index fe1f5fa5f7b7c268b4502e18c5f54fbccde78ab5..a825819f7cd235162afdb4bc611c7444a33737c9 100644 (file)
@@ -600,12 +600,11 @@ PHP_FUNCTION(pdf_get_value)
        convert_to_string_ex(argv[1]);
 
        if(0 == (strncmp(Z_STRVAL_PP(argv[1]), "image", 5))) {
-               int pdf_image;
-               if(argc < 3)
-                       WRONG_PARAM_COUNT;
+               int *pdf_image;
+               if(argc < 3) WRONG_PARAM_COUNT;
 
-               ZEND_FETCH_RESOURCE(pdf_image, int, argv[0], -1, "pdf image", le_pdf_image);
-               value = PDF_get_value(pdf, Z_STRVAL_PP(argv[1]), pdf_image);
+               ZEND_FETCH_RESOURCE(pdf_image, int *, argv[2], -1, "pdf image", le_pdf_image);
+               value = PDF_get_value(pdf, Z_STRVAL_PP(argv[1]), *pdf_image);
 
        } else {