note 13108 deleted from ref.pdf by didou

From: Date: Fri, 08 Aug 2003 21:51:33 +0000
Subject: note 13108 deleted from ref.pdf by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-53691@lists.php.net to get a copy of this message
Note Submitter: jeff@iomojo.com ---- With php-4.0.5 and pdflib-4.0.1 there is an error in the php source code ext/pdf/pdf.c with function pdf_close_pdi_page wanting 3 args instead of 2. To fix, copy the section for this function from the pdflib source bind/php/ext/pdf/pdf.c and then it will compile. Section from the pdflib source reproduced below: /* {{{ proto void pdf_close_pdi(int pdf, int doc); * Close all open page handles, and close the input PDF document. */ PHP_FUNCTION(pdf_close_pdi) { zval **arg1, **arg2; PDF *pdf; if (ZEND_NUM_ARGS() != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) { WRONG_PARAM_COUNT; } ZEND_FETCH_RESOURCE(pdf, PDF *, arg1, -1, "pdf object", le_pdf); convert_to_long_ex(arg2); PDF_close_pdi(pdf, Z_LVAL_PP(arg2)-PDFLIB_PDI_OFFSET); RETURN_TRUE; }

« previous php.notes (#53691) next »