summaryrefslogtreecommitdiff
path: root/ext/dba/dba_db4.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dba/dba_db4.c')
-rw-r--r--ext/dba/dba_db4.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/dba/dba_db4.c b/ext/dba/dba_db4.c
index 483ceb7b1..4cc4d6eb7 100644
--- a/ext/dba/dba_db4.c
+++ b/ext/dba/dba_db4.c
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dba_db4.c 306939 2011-01-01 02:19:59Z felipe $ */
+/* $Id: dba_db4.c 312540 2011-06-27 22:58:59Z sixd $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -46,11 +46,12 @@ static void php_dba_db4_errcall_fcn(
#if (DB_VERSION_MAJOR == 5 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 8))
/* Bug 51086, Berkeley DB 4.8.26 */
-/* This code suppresses a BDB 4.8 error message that BDB incorrectly emits */
+/* This code suppresses a BDB 4.8+ error message, thus keeping PHP test compatibility */
{
char *function = get_active_function_name(TSRMLS_C);
if (function && (!strcmp(function,"dba_popen") || !strcmp(function,"dba_open"))
- && !strncmp(msg, "fop_read_meta", sizeof("fop_read_meta")-1)) {
+ && (!strncmp(msg, "fop_read_meta", sizeof("fop_read_meta")-1)
+ || !strncmp(msg, "BDB0004 fop_read_meta", sizeof("BDB0004 fop_read_meta")-1))) {
return;
}
}