summaryrefslogtreecommitdiff
path: root/ext/com_dotnet
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2011-01-20 06:54:28 +0000
committerPierre Joye <pajoye@php.net>2011-01-20 06:54:28 +0000
commita0708af925472e215f328c096cf9f1878e9d4576 (patch)
tree0b0039848237383b252a1208a1a4952970f667fa /ext/com_dotnet
parented5594f13501f0a91f2a97d69d4f54cf673a48d3 (diff)
downloadphp-git-a0708af925472e215f328c096cf9f1878e9d4576.tar.gz
- fail when no known op are given
Diffstat (limited to 'ext/com_dotnet')
-rw-r--r--ext/com_dotnet/com_variant.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/com_dotnet/com_variant.c b/ext/com_dotnet/com_variant.c
index 44af100a7b..cb22f04fe5 100644
--- a/ext/com_dotnet/com_variant.c
+++ b/ext/com_dotnet/com_variant.c
@@ -593,6 +593,9 @@ static void variant_binary_operation(enum variant_binary_opcode op, INTERNAL_FUN
case VOP_XOR:
result = VarXor(vleft, vright, &vres);
break;
+ /*Let say it fails as no valid op has been given */
+ default:
+ result = E_INVALIDARG;
}
if (SUCCEEDED(result)) {