summaryrefslogtreecommitdiff
path: root/ext/intl/msgformat/msgformat_helpers.cpp
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2013-10-20 21:57:33 -0700
committerStanislav Malyshev <stas@php.net>2013-10-20 23:04:38 -0700
commit219a682e8e977ebe1df49c29c51d52a044a09f8f (patch)
tree6e0de446a21685171b2d151a4aed4512fb58a440 /ext/intl/msgformat/msgformat_helpers.cpp
parentec2e6951b8bf19b6af1653a9c9dc35853e629118 (diff)
downloadphp-git-219a682e8e977ebe1df49c29c51d52a044a09f8f.tar.gz
fix possibility of access to *storedType without initialization
Diffstat (limited to 'ext/intl/msgformat/msgformat_helpers.cpp')
-rw-r--r--ext/intl/msgformat/msgformat_helpers.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/intl/msgformat/msgformat_helpers.cpp b/ext/intl/msgformat/msgformat_helpers.cpp
index c4456d54f3..f75fd91dce 100644
--- a/ext/intl/msgformat/msgformat_helpers.cpp
+++ b/ext/intl/msgformat/msgformat_helpers.cpp
@@ -209,6 +209,9 @@ static HashTable *umsg_parse_format(MessageFormatter_object *mfo,
continue;
}
}
+ } else {
+ intl_errors_set(&err, U_INVALID_FORMAT_ERROR, "Invalid part type encountered", 0 TSRMLS_CC);
+ continue;
}
UMessagePatternArgType argType = p.getArgType();