cvs: php4 /ext/pdf pdf.c
| From: | Jani Taskinen | Date: | Wed, 03 Jan 2001 16:52:59 +0000 |
| Subject: | cvs: php4 /ext/pdf pdf.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-3348@lists.php.net to get a copy of this message | ||
sniper Wed Jan 3 08:52:59 2001 EDT
Modified files:
/php4/ext/pdf pdf.c
Log:
I missed this function..
Index: php4/ext/pdf/pdf.c
diff -u php4/ext/pdf/pdf.c:1.64 php4/ext/pdf/pdf.c:1.65
--- php4/ext/pdf/pdf.c:1.64 Wed Jan 3 08:05:44 2001
+++ php4/ext/pdf/pdf.c Wed Jan 3 08:52:59 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pdf.c,v 1.64 2001/01/03 16:05:44 sniper Exp $ */
+/* $Id: pdf.c,v 1.65 2001/01/03 16:52:59 sniper Exp $ */
/* pdflib 2.02 is subject to the ALADDIN FREE PUBLIC LICENSE.
Copyright (C) 1997 Thomas Merz. */
@@ -600,12 +600,11 @@
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 {