Patch to ext/pdf/
| From: | Kristian Koehntopp | Date: | Tue, 21 Aug 2001 12:40:34 +0000 |
| Subject: | Patch to ext/pdf/ | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-63958@lists.php.net to get a copy of this message | ||
**** Access denied: Insufficient Karma (kk|php4/ext/pdf)
cvs server: Pre-commit check failed
cvs [server aborted]: correct above errors first!
So patch this yourself.
Kristian
? diff Index: pdf.c =================================================================== RCS file: /repository/php4/ext/pdf/pdf.c,v retrieving revision 1.94 diff -u -r1.94 pdf.c --- pdf.c 7 Aug 2001 17:26:30 -0000 1.94 +++ pdf.c 21 Aug 2001 12:38:28 -0000 @@ -81,6 +81,8 @@ PHP_FE(pdf_close, NULL) PHP_FE(pdf_begin_page, NULL) PHP_FE(pdf_end_page, NULL) + PHP_FE(pdf_get_majorversion, NULL) + PHP_FE(pdf_get_minorversion, NULL) PHP_FE(pdf_get_value, NULL) PHP_FE(pdf_set_value, NULL) PHP_FE(pdf_get_parameter, NULL) @@ -2245,6 +2247,29 @@ /* }}} */ +/* {{{ proto int pdf_get_majorversion() + Returns the major version number of the PDFlib */ +PHP_FUNCTION(pdf_get_majorversion) +{ + if (ZEND_NUM_ARGS() != 0) { + WRONG_PARAM_COUNT; + } + + RETURN_LONG(PDF_get_majorversion()); +} + +/* {{{ proto int pdf_get_minorversion() + Returns the minor version number of the PDFlib */ +PHP_FUNCTION(pdf_get_minorversion) +{ + if (ZEND_NUM_ARGS() != 0) { + WRONG_PARAM_COUNT; + } + + RETURN_LONG(PDF_get_minorversion()); +} + +/* }}} */ /* {{{ proto void pdf_delete(int pdfdoc) Deletes the PDF object */ PHP_FUNCTION(pdf_delete) Index: php_pdf.h =================================================================== RCS file: /repository/php4/ext/pdf/php_pdf.h,v retrieving revision 1.19 diff -u -r1.19 php_pdf.h --- php_pdf.h 7 Aug 2001 17:26:32 -0000 1.19 +++ php_pdf.h 21 Aug 2001 12:38:28 -0000 @@ -42,6 +42,8 @@ PHP_FUNCTION(pdf_close); PHP_FUNCTION(pdf_begin_page); PHP_FUNCTION(pdf_end_page); +PHP_FUNCTION(pdf_get_majorversion); +PHP_FUNCTION(pdf_get_minorversion); PHP_FUNCTION(pdf_get_value); PHP_FUNCTION(pdf_set_value); PHP_FUNCTION(pdf_get_parameter);
? diff Index: pdf.c =================================================================== RCS file: /repository/php4/ext/pdf/pdf.c,v retrieving revision 1.94 diff -u -r1.94 pdf.c --- pdf.c 7 Aug 2001 17:26:30 -0000 1.94 +++ pdf.c 21 Aug 2001 12:38:28 -0000 @@ -81,6 +81,8 @@ PHP_FE(pdf_close, NULL) PHP_FE(pdf_begin_page, NULL) PHP_FE(pdf_end_page, NULL) + PHP_FE(pdf_get_majorversion, NULL) + PHP_FE(pdf_get_minorversion, NULL) PHP_FE(pdf_get_value, NULL) PHP_FE(pdf_set_value, NULL) PHP_FE(pdf_get_parameter, NULL) @@ -2245,6 +2247,29 @@ /* }}} */ +/* {{{ proto int pdf_get_majorversion() + Returns the major version number of the PDFlib */ +PHP_FUNCTION(pdf_get_majorversion) +{ + if (ZEND_NUM_ARGS() != 0) { + WRONG_PARAM_COUNT; + } + + RETURN_LONG(PDF_get_majorversion()); +} + +/* {{{ proto int pdf_get_minorversion() + Returns the minor version number of the PDFlib */ +PHP_FUNCTION(pdf_get_minorversion) +{ + if (ZEND_NUM_ARGS() != 0) { + WRONG_PARAM_COUNT; + } + + RETURN_LONG(PDF_get_minorversion()); +} + +/* }}} */ /* {{{ proto void pdf_delete(int pdfdoc) Deletes the PDF object */ PHP_FUNCTION(pdf_delete) Index: php_pdf.h =================================================================== RCS file: /repository/php4/ext/pdf/php_pdf.h,v retrieving revision 1.19 diff -u -r1.19 php_pdf.h --- php_pdf.h 7 Aug 2001 17:26:32 -0000 1.19 +++ php_pdf.h 21 Aug 2001 12:38:28 -0000 @@ -42,6 +42,8 @@ PHP_FUNCTION(pdf_close); PHP_FUNCTION(pdf_begin_page); PHP_FUNCTION(pdf_end_page); +PHP_FUNCTION(pdf_get_majorversion); +PHP_FUNCTION(pdf_get_minorversion); PHP_FUNCTION(pdf_get_value); PHP_FUNCTION(pdf_set_value); PHP_FUNCTION(pdf_get_parameter);