summaryrefslogtreecommitdiff
path: root/ext/ncurses/ncurses_functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ncurses/ncurses_functions.c')
-rw-r--r--ext/ncurses/ncurses_functions.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/ncurses/ncurses_functions.c b/ext/ncurses/ncurses_functions.c
index a03c9fa3a2..c8a1824d80 100644
--- a/ext/ncurses/ncurses_functions.c
+++ b/ext/ncurses/ncurses_functions.c
@@ -2235,15 +2235,13 @@ PHP_FUNCTION(ncurses_new_panel)
PHP_FUNCTION(ncurses_del_panel)
{
zval *handle;
- PANEL **panel;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &handle) == FAILURE) {
return;
}
+ zend_list_delete(Z_RESVAL_PP(handle));
- FETCH_PANEL(panel, &handle);
-
- RETURN_LONG(del_panel(*panel));
+ RETURN_TRUE;
}
/* }}} */