]> granicus.if.org Git - php/commitdiff
- fail when no known op are given
authorPierre Joye <pajoye@php.net>
Thu, 20 Jan 2011 06:54:28 +0000 (06:54 +0000)
committerPierre Joye <pajoye@php.net>
Thu, 20 Jan 2011 06:54:28 +0000 (06:54 +0000)
ext/com_dotnet/com_variant.c

index 43411be94120f8cfe5d5ec0f83f5cda7fc036101..882100af6258582f7ac6d13c9c12ea263b075fd5 100644 (file)
@@ -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)) {