From: Pierre Joye Date: Thu, 20 Jan 2011 06:54:28 +0000 (+0000) Subject: - fail when no known op are given X-Git-Tag: php-5.4.0alpha1~191^2~337 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e9faabe8e5fafd5b818b3afe86d1af8c5b90c71;p=php - fail when no known op are given --- diff --git a/ext/com_dotnet/com_variant.c b/ext/com_dotnet/com_variant.c index 43411be941..882100af62 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)) {