diff options
author | Moriyoshi Koizumi <moriyoshi@php.net> | 2002-12-22 19:01:44 +0000 |
---|---|---|
committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2002-12-22 19:01:44 +0000 |
commit | dcc030f5ef63b28dbeef060a35b015e1968b0873 (patch) | |
tree | 6b1e89e2cc23c5630161f4f896c2df5cf6eee77a /ext/ncurses/ncurses.c | |
parent | c5091eedf10cfbc66dab9b2d81e99bd474808297 (diff) | |
download | php-git-dcc030f5ef63b28dbeef060a35b015e1968b0873.tar.gz |
Fixed bug #21144
Diffstat (limited to 'ext/ncurses/ncurses.c')
-rw-r--r-- | ext/ncurses/ncurses.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/ncurses/ncurses.c b/ext/ncurses/ncurses.c index f72b82a811..96143dd3a7 100644 --- a/ext/ncurses/ncurses.c +++ b/ext/ncurses/ncurses.c @@ -84,11 +84,19 @@ PHP_INI_END() #define PHP_NCURSES_CONST(x) REGISTER_LONG_CONSTANT("NCURSES_"#x, x, CONST_CS | CONST_PERSISTENT) #define PHP_NCURSES_FKEY_CONST(x) REGISTER_LONG_CONSTANT("NCURSES_KEY_F"#x, KEY_F0 + x, CONST_CS | CONST_PERSISTENT) +/* {{{ php_ncurses_globals_ctor */ +static void php_ncurses_globals_ctor(zend_ncurses_globals *pglobals) +{ + pglobals->registered_constants = 0; + pglobals->is_initialised = 0; +} +/* }}} */ /* {{{ PHP_MINIT_FUNCTION */ PHP_MINIT_FUNCTION(ncurses) { + ZEND_INIT_MODULE_GLOBALS(ncurses, php_ncurses_globals_ctor, NULL); /* color constants */ PHP_NCURSES_CONST(COLOR_BLACK); PHP_NCURSES_CONST(COLOR_RED); |