summaryrefslogtreecommitdiff
path: root/ext/ncurses
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2003-11-29 02:04:37 +0000
committerSara Golemon <pollita@php.net>2003-11-29 02:04:37 +0000
commitad868f447adcbd5023fefd304fee8d96ac1dbd99 (patch)
treefa568de3ecea2c249927e03c4da864cd881d0bba /ext/ncurses
parent55775e527309e848c4e3b2bd2792035625797d7d (diff)
downloadphp-git-ad868f447adcbd5023fefd304fee8d96ac1dbd99.tar.gz
Handle dirty script exit.
Diffstat (limited to 'ext/ncurses')
-rw-r--r--ext/ncurses/ncurses.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/ncurses/ncurses.c b/ext/ncurses/ncurses.c
index 145d0948d2..9c4d8d74b5 100644
--- a/ext/ncurses/ncurses.c
+++ b/ext/ncurses/ncurses.c
@@ -266,6 +266,10 @@ PHP_MINIT_FUNCTION(ncurses)
*/
PHP_MSHUTDOWN_FUNCTION(ncurses)
{
+ if (NCURSES_G(registered_constants)) {
+ endwin();
+ }
+
return SUCCESS;
}
/* }}} */