summaryrefslogtreecommitdiffstats
path: root/pdflib-phpinfo.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pdflib-phpinfo.patch')
-rw-r--r--pdflib-phpinfo.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/pdflib-phpinfo.patch b/pdflib-phpinfo.patch
new file mode 100644
index 0000000..a343da2
--- /dev/null
+++ b/pdflib-phpinfo.patch
@@ -0,0 +1,18 @@
+diff -up ./pdf.c.old ./pdf.c
+--- ./pdf.c.old 2019-09-16 14:50:34.349661071 +0200
++++ ./pdf.c 2019-09-16 14:49:35.122885536 +0200
+@@ -383,12 +383,8 @@ PHP_MINFO_FUNCTION(PDFlib)
+ {
+ php_info_print_table_start();
+ php_info_print_table_header(2, "PDFlib Support", "enabled" );
+-#ifdef PDF_FEATURE_INTERNAL
+- php_info_print_table_row(2, "PHP extension built by PDFlib GmbH", PDFLIB_VSTRING);
+-#else /* PDF_FEATURE_INTERNAL */
+- php_info_print_table_row(2, "PHP extension built with PECL", PDFLIB_VSTRING);
+- php_info_print_table_row(2, "PECL Version", PHP_PDFLIB_VERSION);
+-#endif /* PDF_FEATURE_INTERNAL */
++ php_info_print_table_row(2, "pdflib extension version", PHP_PDFLIB_VERSION);
++ php_info_print_table_row(2, "pdflib-lite library version", PDFLIB_VSTRING);
+ php_info_print_table_end();
+ }
+ /* }}} */