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

index a03c9fa3a291d080d2a518e99136e398b8c183f3..c8a1824d80eac6a2c97366dacdd88e795dc7156a 100644 (file)
@@ -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;
 }
 /* }}} */