summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-06-27 14:54:42 +0300
committerDmitry Stogov <dmitry@zend.com>2018-06-27 14:54:42 +0300
commit716bbd34805f1d0a74b3bf6fb97917b0c6485356 (patch)
tree1f9999a39d723e8b40872ffa5b22fdc34a28497f /sapi/phpdbg/phpdbg.c
parent56450c6e65a3f68a1a1c69600d7ae5ca9e5a135c (diff)
downloadphp-git-716bbd34805f1d0a74b3bf6fb97917b0c6485356.tar.gz
Remove duplicated code (keep destroy_zend_function() for compatibility)
Diffstat (limited to 'sapi/phpdbg/phpdbg.c')
-rw-r--r--sapi/phpdbg/phpdbg.c3
1 files changed, 1 insertions, 2 deletions
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) /* {{{ */