note 13333 added to ref.pdf.php
| From: | casebell at dreamwiz dot com | Date: | Tue, 12 Jun 2001 01:36:42 +0000 |
| Subject: | note 13333 added to ref.pdf.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14383@lists.php.net to get a copy of this message | ||
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;
}
http://www.php.net/manual/kr/ref.pdf.php