From: Felipe Pena Date: Tue, 15 Nov 2011 12:34:59 +0000 (+0000) Subject: - We can constify in 5.4+ X-Git-Tag: php-5.4.0RC2~77 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=256867269137cf4ea5f5aa628c75695ebd5d5815;p=php - We can constify in 5.4+ --- diff --git a/ext/dba/dba_db4.c b/ext/dba/dba_db4.c index b47aed160c..8a171291e1 100644 --- a/ext/dba/dba_db4.c +++ b/ext/dba/dba_db4.c @@ -48,7 +48,7 @@ static void php_dba_db4_errcall_fcn( /* Bug 51086, Berkeley DB 4.8.26 */ /* This code suppresses a BDB 4.8+ error message, thus keeping PHP test compatibility */ { - char *function = get_active_function_name(TSRMLS_C); + const 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, "BDB0004 fop_read_meta", sizeof("BDB0004 fop_read_meta")-1))) {