mirror of
https://github.com/php/php-src.git
synced 2024-11-27 20:03:40 +08:00
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.
This commit is contained in:
parent
4b6363d100
commit
193dcec529
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user