]> git.pld-linux.org Git - packages/php.git/blob - libdb-info.patch
- fix building with icu 69
[packages/php.git] / libdb-info.patch
1 diff -urNp -x '*.orig' php-7.2.34.org/ext/dba/dba.c php-7.2.34/ext/dba/dba.c
2 --- php-7.2.34.org/ext/dba/dba.c        2020-09-30 07:15:52.000000000 +0200
3 +++ php-7.2.34/ext/dba/dba.c    2021-08-27 22:34:35.924503218 +0200
4 @@ -53,6 +53,10 @@
5  #include "php_tcadb.h"
6  #include "php_lmdb.h"
7  
8 +#ifdef DB4_INCLUDE_FILE
9 +#include DB4_INCLUDE_FILE
10 +#endif
11 +
12  /* {{{ arginfo */
13  ZEND_BEGIN_ARG_INFO_EX(arginfo_dba_popen, 0, 0, 2)
14         ZEND_ARG_INFO(0, path)
15 @@ -558,6 +562,10 @@ PHP_MINFO_FUNCTION(dba)
16  
17         php_info_print_table_start();
18         php_info_print_table_row(2, "DBA support", "enabled");
19 +#ifdef DB_VERSION_STRING
20 +       php_info_print_table_row(2, "libdb header version", DB_VERSION_STRING);
21 +       php_info_print_table_row(2, "libdb library version", db_version(NULL, NULL, NULL));
22 +#endif
23         if (handlers.s) {
24                 smart_str_0(&handlers);
25                 php_info_print_table_row(2, "Supported handlers", ZSTR_VAL(handlers.s));
This page took 0.025137 seconds and 3 git commands to generate.