diff options
| author | James Moore <jmoore@php.net> | 2001-05-08 00:23:59 +0000 |
|---|---|---|
| committer | James Moore <jmoore@php.net> | 2001-05-08 00:23:59 +0000 |
| commit | 7056620699644f369fd39507a0d8c7f13d6fe7a1 (patch) | |
| tree | c27667706e34b9337552cca21a8fb472894f9315 /ext/pdf | |
| parent | 910e9d068c7c37f44a22e0e097e1360739e16475 (diff) | |
| download | php-git-7056620699644f369fd39507a0d8c7f13d6fe7a1.tar.gz | |
Give correct warnings if certain libaries/verisons are not avalible
Diffstat (limited to 'ext/pdf')
| -rw-r--r-- | ext/pdf/pdf.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/pdf/pdf.c b/ext/pdf/pdf.c index 8ee4d657bc..d908dadac6 100644 --- a/ext/pdf/pdf.c +++ b/ext/pdf/pdf.c @@ -171,6 +171,8 @@ function_entry pdf_functions[] = { PHP_FE(pdf_add_annotation, NULL) #if HAVE_LIBGD13 PHP_FE(pdf_open_memory_image, NULL) +#else + PHP_FALIAS(pdf_open_memory_image, warn_not_available, NULL) #endif /* depreciatet after V4.0 of PDFlib */ PHP_FE(pdf_setgray_fill, NULL) @@ -199,6 +201,24 @@ function_entry pdf_functions[] = { PHP_FE(pdf_add_thumbnail, NULL) PHP_FE(pdf_initgraphics, NULL) PHP_FE(pdf_setmatrix, NULL) +#else + PHP_FALIAS(pdf_open_pdi, warn_not_available, NULL) + PHP_FALIAS(pdf_close_pdi, warn_not_available, NULL) + PHP_FALIAS(pdf_open_pdi_page, warn_not_available, NULL) + PHP_FALIAS(pdf_place_pdi_page, warn_not_available, NULL) + PHP_FALIAS(pdf_close_pdi_page, warn_not_available, NULL) + PHP_FALIAS(pdf_get_pdi_parameter, warn_not_available, NULL) + PHP_FALIAS(pdf_get_pdi_value, warn_not_available, NULL) + PHP_FALIAS(pdf_begin_pattern, warn_not_available, NULL) + PHP_FALIAS(pdf_end_pattern, warn_not_available, NULL) + PHP_FALIAS(pdf_begin_template, warn_not_available, NULL) + PHP_FALIAS(pdf_end_template, warn_not_available, NULL) + PHP_FALIAS(pdf_setcolor, warn_not_available, NULL) + PHP_FALIAS(pdf_makespotcolor, warn_not_available, NULL) + PHP_FALIAS(pdf_arcn, warn_not_available, NULL) + PHP_FALIAS(pdf_add_thumbnail, warn_not_available, NULL) + PHP_FALIAS(pdf_initgraphics, warn_not_available, NULL) + PHP_FALIAS(pdf_setmatrix, warn_not_available, NULL) #endif /* PDFlib >= V4 */ {NULL, NULL, NULL} |
