diff options
| author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-01-03 20:44:29 +0100 |
|---|---|---|
| committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-01-03 21:10:24 +0100 |
| commit | aadd3aaed902a8f21c11984687a4e3d414a2caed (patch) | |
| tree | 0bfab8aacc7044d2ed66ce86d8c92c22721ec97d /ext/com_dotnet/com_variant.c | |
| parent | bbcfa66e06110d8256595e644378a5358dda3558 (diff) | |
| download | php-git-aadd3aaed902a8f21c11984687a4e3d414a2caed.tar.gz | |
Use RETURN_THROWS() in various places
Diffstat (limited to 'ext/com_dotnet/com_variant.c')
| -rw-r--r-- | ext/com_dotnet/com_variant.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/com_dotnet/com_variant.c b/ext/com_dotnet/com_variant.c index 2a545e1221..bc4c7950e0 100644 --- a/ext/com_dotnet/com_variant.c +++ b/ext/com_dotnet/com_variant.c @@ -589,7 +589,7 @@ static void variant_binary_operation(enum variant_binary_opcode op, INTERNAL_FUN php_com_variant_from_zval(vright, zright, codepage); } else { - return; + RETURN_THROWS(); } switch (op) { @@ -775,7 +775,7 @@ static void variant_unary_operation(enum variant_unary_opcode op, INTERNAL_FUNCT vleft = &left_val; php_com_variant_from_zval(vleft, zleft, codepage); } else { - return; + RETURN_THROWS(); } switch (op) { @@ -873,7 +873,7 @@ PHP_FUNCTION(variant_round) vleft = &left_val; php_com_variant_from_zval(vleft, zleft, codepage); } else { - return; + RETURN_THROWS(); } if (SUCCEEDED(VarRound(vleft, (int)decimals, &vres))) { @@ -933,7 +933,7 @@ PHP_FUNCTION(variant_cmp) php_com_variant_from_zval(vright, zright, codepage); } else { - return; + RETURN_THROWS(); } ZVAL_LONG(return_value, VarCmp(vleft, vright, (LCID)lcid, (ULONG)flags)); |
