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.3.6RC1~87 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0708af925472e215f328c096cf9f1878e9d4576;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 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)) {