php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch dba-libdbinfo.patch for DBM/DBA related Bug #63117

Patch version 2012-09-19 13:10 UTC

Return to Bug #63117 | Download this patch
Patch Revisions:

Developer: remi@php.net

--- php-5.4.7/ext/dba/dba.c.old	2012-09-19 14:55:23.868456900 +0200
+++ php-5.4.7/ext/dba/dba.c	2012-09-19 15:02:42.796009320 +0200
@@ -52,6 +52,10 @@
 #include "php_qdbm.h"
 #include "php_tcadb.h"
 
+#ifdef DB4_INCLUDE_FILE
+#include DB4_INCLUDE_FILE
+#endif
+
 /* {{{ arginfo */
 ZEND_BEGIN_ARG_INFO_EX(arginfo_dba_popen, 0, 0, 2)
 	ZEND_ARG_INFO(0, path)
@@ -522,6 +526,10 @@
 
 	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.c) {
 		smart_str_0(&handlers);
 		php_info_print_table_row(2, "Supported handlers", handlers.c);
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 09:01:26 2024 UTC