]> granicus.if.org Git - php/commitdiff
fixed #24060
authorGeorg Richter <georg@php.net>
Fri, 6 Jun 2003 18:50:46 +0000 (18:50 +0000)
committerGeorg Richter <georg@php.net>
Fri, 6 Jun 2003 18:50:46 +0000 (18:50 +0000)
ext/ncurses/ncurses_functions.c

index 3c8513456022fa7ba38f2b2e3ae564d7ee394564..6b74fadaf0cd7fa70cfb90d9d78d0232d8722c27 100644 (file)
@@ -2278,14 +2278,13 @@ PHP_FUNCTION(ncurses_new_panel)
 PHP_FUNCTION(ncurses_del_panel)
 {
        zval **handle;
-       PANEL **panel;
 
        if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &handle) == FAILURE)
                WRONG_PARAM_COUNT;
 
-       FETCH_PANEL(panel, handle);
+       zend_list_delete(Z_RESVAL_PP(handle));
 
-       RETURN_LONG(del_panel(*panel));
+       RETURN_TRUE;
 }
 /* }}} */