summaryrefslogtreecommitdiff
path: root/ext/session/session.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2009-07-28 08:54:23 +0000
committerAntony Dovgal <tony2001@php.net>2009-07-28 08:54:23 +0000
commit75fc7021621fe2ab9b25bf224412d23269d75d3e (patch)
treee6da9fb4842834bcfab770883116b7989c3ed2b2 /ext/session/session.c
parent59ff2127830e90e2eaed4e3e9c9dde3689771afa (diff)
downloadphp-git-75fc7021621fe2ab9b25bf224412d23269d75d3e.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.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/session/session.c b/ext/session/session.c
index caac6a6b05..011f831c30 100644
--- a/ext/session/session.c
+++ b/ext/session/session.c
@@ -2248,8 +2248,16 @@ static PHP_MINFO_FUNCTION(session) /* {{{ */
}
/* }}} */
+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),