]> granicus.if.org Git - php/commitdiff
fix proto. return true instead of null
authorAndrey Hristov <andrey@php.net>
Sun, 10 Apr 2005 21:23:27 +0000 (21:23 +0000)
committerAndrey Hristov <andrey@php.net>
Sun, 10 Apr 2005 21:23:27 +0000 (21:23 +0000)
ext/ncurses/ncurses_functions.c

index 7a770a009f960463c6e11c43e0396be7ebe2927c..ffaec5ac309fb5fd5ad3be0e441066f103082e2f 100644 (file)
@@ -84,7 +84,7 @@ PHP_FUNCTION(ncurses_color_set)
 /* }}} */
 #endif
 
-/* {{{ proto int ncurses_delwin(resource window)
+/* {{{ proto bool ncurses_delwin(resource window)
    Deletes a ncurses window */
 PHP_FUNCTION(ncurses_delwin)
 {
@@ -98,6 +98,8 @@ PHP_FUNCTION(ncurses_delwin)
        FETCH_WINRES(w, &handle);
 
        zend_list_delete(Z_LVAL_P(handle));
+       ZVAL_NULL(handle);
+       RETURN_TRUE;
 }
 /* }}} */