summaryrefslogtreecommitdiffstats
path: root/pdflib-phpinfo.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-09-16 15:43:05 +0200
committerRemi Collet <remi@remirepo.net>2019-09-16 15:43:05 +0200
commit160523560c0cfd1cfc03210efb5a413faad01d1a (patch)
tree032ad307b5b4f6f2639c8d3aa80935b2bdc5e3f9 /pdflib-phpinfo.patch
parenta9086b51a7fa5c46d7406cdd3cead597848babe9 (diff)
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();
+ }
+ /* }}} */