diff options
author | Antony Dovgal <tony2001@php.net> | 2009-07-28 08:54:23 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2009-07-28 08:54:23 +0000 |
commit | 69dba3c9967d486e19b9c1beacd9b4da7ecfc99f (patch) | |
tree | 90478b3b20707ed0a4402f2eb996ca926edbaac9 /ext/session/session.c | |
parent | bf0ef43d3094bc1025f1bc9de2af5451132daee3 (diff) | |
download | php-git-69dba3c9967d486e19b9c1beacd9b4da7ecfc99f.tar.gz |
fix segfault in session/tests/031.phpt by adding optional extension
dependency (php_hash_hashtable has to be initialized when setting
session.hash_function)
Diffstat (limited to 'ext/session/session.c')
-rw-r--r-- | ext/session/session.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index 0a9cc13acf..c03e3ade1c 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -2352,8 +2352,16 @@ static int php_session_rfc1867_callback(unsigned int event, void *event_data, vo } /* }}} */ +static const zend_module_dep session_deps[] = { /* {{{ */ + ZEND_MOD_OPTIONAL("hash") + {NULL, NULL, NULL} +}; +/* }}} */ + zend_module_entry session_module_entry = { - STANDARD_MODULE_HEADER, + STANDARD_MODULE_HEADER_EX, + NULL, + session_deps, "session", session_functions, PHP_MINIT(session), PHP_MSHUTDOWN(session), |