From 0a101fba3bf3a961a35f8b89ae034d7381f036dd Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Sun, 7 Dec 2008 00:38:14 +0000 Subject: [PATCH] [PHP] Fix warnings when compiling generated wrapper with GCC 4.3. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10970 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- CHANGES.current | 5 ++++- Source/Modules/php.cxx | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGES.current b/CHANGES.current index 8431febfd..fc9e40ab5 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -1,7 +1,10 @@ Version 1.3.37 (in progress) ============================ -2008-12-02: wsfulton +2008-12-07: olly + [PHP] Fix warnings when compiling generated wrapper with GCC 4.3. + +2008-12-06: wsfulton [PHP] Deprecate %pragma(php4). Please use %pragma(php) instead. The following two warnings have been renamed: WARN_PHP4_MULTIPLE_INHERITANCE -> WARN_PHP_MULTIPLE_INHERITANCE diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx index 3ee1154ae..fa8757a80 100644 --- a/Source/Modules/php.cxx +++ b/Source/Modules/php.cxx @@ -586,7 +586,7 @@ public: Printf(f->code, "SWIG_ErrorCode() = E_ERROR;\n"); Printf(f->code, "SWIG_ErrorMsg() = \"No matching function for overloaded '%s'\";\n", symname); - Printv(f->code, "zend_error(SWIG_ErrorCode(),SWIG_ErrorMsg());\n", NIL); + Printv(f->code, "zend_error(SWIG_ErrorCode(),\"%s\",SWIG_ErrorMsg());\n", NIL); Printv(f->code, "}\n", NIL); Wrapper_print(f, s_wrappers); @@ -842,7 +842,7 @@ public: /* Error handling code */ Printf(f->code, "fail:\n"); Printv(f->code, cleanup, NIL); - Printv(f->code, "zend_error(SWIG_ErrorCode(),SWIG_ErrorMsg());", NIL); + Printv(f->code, "zend_error(SWIG_ErrorCode(),\"%s\",SWIG_ErrorMsg());", NIL); Printf(f->code, "}\n");