From fa8bf1b870b2ae87a6b913951db2cc6964c3a78d Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Wed, 4 Oct 2006 13:25:38 +0000 Subject: [PATCH] Make the char we use to instantiate single character constants static, as PHP doesn't appear to take a copy. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9406 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/php4/const.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/php4/const.i b/Lib/php4/const.i index 1ecd45e7f..00103eb80 100644 --- a/Lib/php4/const.i +++ b/Lib/php4/const.i @@ -24,7 +24,7 @@ "REGISTER_DOUBLE_CONSTANT(\"$symname\", $value, CONST_CS | CONST_PERSISTENT);"; %typemap(consttab) char { - char swig_char = $value; + static char swig_char = $value; REGISTER_STRINGL_CONSTANT("$symname", &swig_char, 1, CONST_CS | CONST_PERSISTENT); }