1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

ext/pcntl: Remove useless call to zend_get_callable_name() (#12241)

Result of it is unused
This commit is contained in:
George Peter Banyard
2023-09-18 17:35:36 +01:00
committed by GitHub
parent 886bf820c9
commit bc4807c506

View File

@@ -655,11 +655,9 @@ PHP_FUNCTION(pcntl_signal)
}
if (!zend_is_callable_ex(handle, NULL, 0, NULL, NULL, &error)) {
zend_string *func_name = zend_get_callable_name(handle);
PCNTL_G(last_error) = EINVAL;
zend_argument_type_error(2, "must be of type callable|int, %s given", zend_zval_value_name(handle));
zend_string_release_ex(func_name, 0);
efree(error);
RETURN_THROWS();
}