From 7497fe082a64c79e873cff47a1a349b34c5929d1 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 30 Jul 2009 15:53:57 +0200 Subject: [PATCH] PHP: fix for the cpp_namespace testcase --- Source/Modules/php.cxx | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx index 5517733..fdf88c9 100644 --- a/Source/Modules/php.cxx +++ b/Source/Modules/php.cxx @@ -1175,6 +1175,11 @@ public: assert(0 <= argno && argno < max_num_of_arguments); String *&pname = arg_names[argno]; const char *pname_cstr = GetChar(p, "name"); + // Just get rid of the C++ namespace part for now. + const char *ptr = NULL; + if ((ptr = strrchr(pname_cstr, ':'))) { + pname_cstr = ptr + 1; + } if (!pname_cstr) { // Unnamed parameter, e.g. int foo(int); } else if (pname == NULL) { -- 1.6.3.3