From a9330e6b8cc0eadc6900b45ac69d46bc19dc00a1 Mon Sep 17 00:00:00 2001 From: Ken Rice Date: Fri, 20 Sep 2013 14:58:44 -0500 Subject: [PATCH] --resolve ESL-72 fix const char* vs char* issue in swig --- libs/esl/php/Makefile | 1 + libs/esl/php/esl_wrap.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/esl/php/Makefile b/libs/esl/php/Makefile index dce8fd4bd1..97674f85be 100644 --- a/libs/esl/php/Makefile +++ b/libs/esl/php/Makefile @@ -17,6 +17,7 @@ all: ESL.so esl_wrap.cpp: swig -module ESL -php5 -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i + sed -e 's/ char \*type_name;/ const char \*type_name;/' -i esl_wrap.cpp esl_wrap.o: esl_wrap.cpp $(CXX) $(CXX_CFLAGS) $(CXXFLAGS) $(LOCAL_CFLAGS) $(WRAP_GCC_WARNING_SILENCE) -c esl_wrap.cpp -o esl_wrap.o diff --git a/libs/esl/php/esl_wrap.cpp b/libs/esl/php/esl_wrap.cpp index 8c91f25452..0389cc2151 100644 --- a/libs/esl/php/esl_wrap.cpp +++ b/libs/esl/php/esl_wrap.cpp @@ -857,7 +857,7 @@ SWIG_ZTS_ConvertResourcePtr(zval *z, swig_type_info *ty, int flags TSRMLS_DC) { swig_object_wrapper *value; void *p; int type; - char *type_name; + const char *type_name; value = (swig_object_wrapper *) zend_list_find(z->value.lval, &type); if ( flags && SWIG_POINTER_DISOWN ) {