summaryrefslogtreecommitdiffstats
path: root/27.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-06-22 14:06:25 +0200
committerRemi Collet <remi@remirepo.net>2020-06-22 14:06:25 +0200
commit05698f70edcd3106021425ac36023964e527e72e (patch)
treebedb920ec0b204bec6ed3e69b05e6d0c4d85dc0c /27.patch
new package
open https://github.com/goodspb/pdlib/pull/25 fix linker command open https://github.com/goodspb/pdlib/pull/26 fix skip test open https://github.com/goodspb/pdlib/pull/27 display version open https://github.com/goodspb/pdlib/pull/29 fix build
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