diff options
author | Sara Golemon <pollita@php.net> | 2003-11-29 02:04:37 +0000 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2003-11-29 02:04:37 +0000 |
commit | ad868f447adcbd5023fefd304fee8d96ac1dbd99 (patch) | |
tree | fa568de3ecea2c249927e03c4da864cd881d0bba /ext/ncurses | |
parent | 55775e527309e848c4e3b2bd2792035625797d7d (diff) | |
download | php-git-ad868f447adcbd5023fefd304fee8d96ac1dbd99.tar.gz |
Handle dirty script exit.
Diffstat (limited to 'ext/ncurses')
-rw-r--r-- | ext/ncurses/ncurses.c | 4 |
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; } /* }}} */ |