summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorUwe Steinmann <steinm@php.net>2000-02-21 16:23:09 +0000
committerUwe Steinmann <steinm@php.net>2000-02-21 16:23:09 +0000
commit5dd0055c771e2b1cf32875fd4095714bb7624579 (patch)
tree47b0b167453ef8593ed10bc134e9ae6a5c5e7ec1 /ext
parent9ff0159bf4f21968ca2a150d865b588d649b823a (diff)
downloadphp-git-5dd0055c771e2b1cf32875fd4095714bb7624579.tar.gz
- pdf_set_text_matrix() disappeared in pdflib 2.30. Put in another ifdef
- small fix in testdom to suppress error msg.
Diffstat (limited to 'ext')
-rw-r--r--ext/pdf/pdf.c4
-rw-r--r--ext/pdf/php_pdf.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/ext/pdf/pdf.c b/ext/pdf/pdf.c
index 33a709f658..1933000e0c 100644
--- a/ext/pdf/pdf.c
+++ b/ext/pdf/pdf.c
@@ -98,7 +98,9 @@ function_entry pdf_functions[] = {
PHP_FE(pdf_set_text_rendering, NULL)
PHP_FE(pdf_set_horiz_scaling, NULL)
PHP_FE(pdf_set_text_rise, NULL)
+#if PDFLIB_MAJORVERSION < 3 & PDFLIB_MINORVERSION < 30
PHP_FE(pdf_set_text_matrix, NULL)
+#endif
PHP_FE(pdf_set_text_pos, NULL)
PHP_FE(pdf_set_char_spacing, NULL)
PHP_FE(pdf_set_word_spacing, NULL)
@@ -875,6 +877,7 @@ PHP_FUNCTION(pdf_set_text_rise) {
}
/* }}} */
+#if PDFLIB_MAJORVERSION < 3 & PDFLIB_MINORVERSION < 30
/* {{{ proto void pdf_set_text_matrix(int pdfdoc, arry matrix)
Sets the text matrix */
PHP_FUNCTION(pdf_set_text_matrix) {
@@ -926,6 +929,7 @@ PHP_FUNCTION(pdf_set_text_matrix) {
RETURN_TRUE;
}
/* }}} */
+#endif
/* {{{ proto void pdf_set_text_pos(int pdfdoc, double x, double y)
Set the position of text for the next pdf_show call */
diff --git a/ext/pdf/php_pdf.h b/ext/pdf/php_pdf.h
index fb4f51dd07..e707507eb8 100644
--- a/ext/pdf/php_pdf.h
+++ b/ext/pdf/php_pdf.h
@@ -66,7 +66,9 @@ PHP_FUNCTION(pdf_set_leading);
PHP_FUNCTION(pdf_set_text_rendering);
PHP_FUNCTION(pdf_set_horiz_scaling);
PHP_FUNCTION(pdf_set_text_rise);
+#if PDFLIB_MAJORVERSION < 3 & PDFLIB_MINORVERSION < 30
PHP_FUNCTION(pdf_set_text_matrix);
+#endif
PHP_FUNCTION(pdf_set_text_pos);
PHP_FUNCTION(pdf_set_char_spacing);
PHP_FUNCTION(pdf_set_word_spacing);