From: foobar Date: Wed, 3 Jan 2001 16:53:00 +0000 (+0000) Subject: I missed this function.. X-Git-Tag: php-4.0.5RC1~748 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4a946b3f4c003af2e3edc2cf42955ebb3402ae8;p=php I missed this function.. --- diff --git a/ext/pdf/pdf.c b/ext/pdf/pdf.c index fe1f5fa5f7..a825819f7c 100644 --- a/ext/pdf/pdf.c +++ b/ext/pdf/pdf.c @@ -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 {