note 13333 deleted from ref.pdf by didou
| From: | didou@php.net | Date: | Fri, 08 Aug 2003 21:51:23 +0000 |
| Subject: | note 13333 deleted from ref.pdf by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-53690@lists.php.net to get a copy of this message | ||
Note Submitter: casebell@dreamwiz.com
----
With PHP-4.0.5 and PDFLib 4.0.1 the Error that do not compile in the php compiling..
The error function in pdf.c is no PHP_FUNCTION(pdf_close_pdi) but PHP_FUNCTION(pdf_close_pdi_page)
patch pdf.c in php-4.0.5. Like as below
PHP_FUNCTION(pdf_close_pdi_page) {
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_page(pdf,
Z_LVAL_PP(arg2)-PDFLIB_IMAGE_OFFSET);
RETURN_TRUE;
}