summaryrefslogtreecommitdiff
path: root/libdb-info.patch
blob: 0c5a9007901cd31e3a908fed2974ea32fbcf0e16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- php-8.0.0rc1/ext/dba/dba.c~	2020-10-09 19:00:25.000000000 +0300
+++ php-8.0.0rc1/ext/dba/dba.c	2020-10-09 19:01:14.638869747 +0300
@@ -50,6 +50,10 @@
 #include "php_lmdb.h"
 #include "dba_arginfo.h"
 
+#ifdef DB4_INCLUDE_FILE
+#include DB4_INCLUDE_FILE
+#endif
+
 PHP_MINIT_FUNCTION(dba);
 PHP_MSHUTDOWN_FUNCTION(dba);
 PHP_MINFO_FUNCTION(dba);
@@ -545,6 +549,10 @@ PHP_MINFO_FUNCTION(dba)
 
 	php_info_print_table_start();
 	php_info_print_table_row(2, "DBA support", "enabled");
+#ifdef DB_VERSION_STRING
+ 	php_info_print_table_row(2, "libdb header version", DB_VERSION_STRING);
+ 	php_info_print_table_row(2, "libdb library version", db_version(NULL, NULL, NULL));
+#endif
 	if (handlers.s) {
 		smart_str_0(&handlers);
 		php_info_print_table_row(2, "Supported handlers", ZSTR_VAL(handlers.s));