Skip to content

Commit bc4807c

Browse files
authored
ext/pcntl: Remove useless call to zend_get_callable_name() (#12241)
Result of it is unused
1 parent 886bf82 commit bc4807c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ext/pcntl/pcntl.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,11 +655,9 @@ PHP_FUNCTION(pcntl_signal)
655655
}
656656

657657
if (!zend_is_callable_ex(handle, NULL, 0, NULL, NULL, &error)) {
658-
zend_string *func_name = zend_get_callable_name(handle);
659658
PCNTL_G(last_error) = EINVAL;
660659

661660
zend_argument_type_error(2, "must be of type callable|int, %s given", zend_zval_value_name(handle));
662-
zend_string_release_ex(func_name, 0);
663661
efree(error);
664662
RETURN_THROWS();
665663
}

0 commit comments

Comments
 (0)