From: Pierre Joye Date: Thu, 20 Jan 2011 06:58:04 +0000 (+0000) Subject: - fail when no known op are given X-Git-Tag: php-5.3.6RC1~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=54e9aa91103bf84c161192ee1c2fa3c59267a11e;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 cb22f04fe5..bac3722b9d 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)) {