summaryrefslogtreecommitdiff
path: root/ext/com_dotnet
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-08-12 10:01:30 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2019-08-12 10:02:45 +0200
commit193dcec529b86dcaed7e81ef79d8b837d9a7cea7 (patch)
treea620733c6fde6651921d9b24aae39ebaf0ec0b2c /ext/com_dotnet
parent4b6363d100c93a94d11f43c5988f075c74bb10d3 (diff)
downloadphp-git-193dcec529b86dcaed7e81ef79d8b837d9a7cea7.tar.gz
Don't explicitly set return value on ZPP failure
Failing ZPP throws as of PHP 8.0.0, so explicitly setting a return value is useless, and also slightly confusing.
Diffstat (limited to 'ext/com_dotnet')
-rw-r--r--ext/com_dotnet/com_com.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/com_dotnet/com_com.c b/ext/com_dotnet/com_com.c
index a16d5396d8..f9d88603c7 100644
--- a/ext/com_dotnet/com_com.c
+++ b/ext/com_dotnet/com_com.c
@@ -701,7 +701,7 @@ PHP_FUNCTION(com_event_sink)
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "Oo|z/",
&object, php_com_variant_class_entry, &sinkobject, &sink)) {
- RETURN_FALSE;
+ return;
}
php_com_initialize();
@@ -762,7 +762,7 @@ PHP_FUNCTION(com_print_typeinfo)
if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "z/|s!b", &arg1, &ifacename,
&ifacelen, &wantsink)) {
- RETURN_FALSE;
+ return;
}
php_com_initialize();