summaryrefslogtreecommitdiff
path: root/ext/com_dotnet
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2011-01-20 06:58:04 +0000
committerPierre Joye <pajoye@php.net>2011-01-20 06:58:04 +0000
commit739a870b0db78e84de75b3163ba6d23386f53dc4 (patch)
tree11fe63daf704666411aad67a2a6d2449cc4fabc9 /ext/com_dotnet
parent4ff753b99bff7a960fec0e4b10600de293724fbb (diff)
downloadphp-git-739a870b0db78e84de75b3163ba6d23386f53dc4.tar.gz
- fail when no known op are given
Diffstat (limited to 'ext/com_dotnet')
-rw-r--r--ext/com_dotnet/com_variant.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/com_dotnet/com_variant.c b/ext/com_dotnet/com_variant.c
index 882100af62..fd08aeb224 100644
--- a/ext/com_dotnet/com_variant.c
+++ b/ext/com_dotnet/com_variant.c
@@ -755,6 +755,8 @@ static void variant_unary_operation(enum variant_unary_opcode op, INTERNAL_FUNCT
case VOP_NOT:
result = VarNot(vleft, &vres);
break;
+ default:
+ result = E_INVALIDARG;
}
if (SUCCEEDED(result)) {