From 716bbd34805f1d0a74b3bf6fb97917b0c6485356 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 27 Jun 2018 14:54:42 +0300 Subject: Remove duplicated code (keep destroy_zend_function() for compatibility) --- sapi/phpdbg/phpdbg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sapi/phpdbg/phpdbg.c') diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index ee9cf35822..dd2d6b4bd4 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -121,8 +121,7 @@ static void php_phpdbg_destroy_bp_condition(zval *data) /* {{{ */ static void php_phpdbg_destroy_registered(zval *data) /* {{{ */ { - zend_function *function = (zend_function *) Z_PTR_P(data); - destroy_zend_function(function); + zend_function_dtor(data); } /* }}} */ static void php_phpdbg_destroy_file_source(zval *data) /* {{{ */ -- cgit v1.2.1