From afea522237eb24b021a8f2b082101e0556ab6116 Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Mon, 18 Sep 2023 14:53:26 +0100 Subject: [PATCH] ext/pcntl: Remove useless call to zend_get_callable_name() Result of it is unused --- ext/pcntl/pcntl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c index 19460ad8b53fd..a0592525b33db 100644 --- a/ext/pcntl/pcntl.c +++ b/ext/pcntl/pcntl.c @@ -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(); }