summaryrefslogtreecommitdiffstats
path: root/27.patch
diff options
context:
space:
mode:
Diffstat (limited to '27.patch')
-rw-r--r--27.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/27.patch b/27.patch
new file mode 100644
index 0000000..495aecc
--- /dev/null
+++ b/27.patch
@@ -0,0 +1,35 @@
+From b70ff4eb17468da206745e890f479eee7522bc63 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Mon, 22 Jun 2020 11:20:55 +0200
+Subject: [PATCH] display extension and library version in phpinfo
+
+---
+ pdlib.cc | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/pdlib.cc b/pdlib.cc
+index 76bf514..c1db7e4 100644
+--- a/pdlib.cc
++++ b/pdlib.cc
+@@ -33,6 +33,7 @@ extern "C" {
+ #include "src/face_recognition.h"
+ #include "src/cnn_face_detection.h"
+ #include "src/face_landmark_detection.h"
++#include <dlib/revision.h>
+
+ /* If you declare any globals in php_pdlib.h uncomment this:
+ ZEND_DECLARE_MODULE_GLOBALS(pdlib)
+@@ -245,8 +246,13 @@ PHP_RSHUTDOWN_FUNCTION(pdlib)
+ */
+ PHP_MINFO_FUNCTION(pdlib)
+ {
++ char buf[32];
++
+ php_info_print_table_start();
+ php_info_print_table_header(2, "pdlib support", "enabled");
++ php_info_print_table_row(2, "pdlib extension version", PHP_PDLIB_VERSION);
++ snprintf(buf, sizeof(buf), "%d.%d.%d", DLIB_MAJOR_VERSION, DLIB_MINOR_VERSION, DLIB_PATCH_VERSION);
++ php_info_print_table_row(2, "dlib library version", buf);
+ php_info_print_table_end();
+
+ /* Remove comments if you have entries in php.ini