From 2cb820275d83bc9730dd253c968ae8fd117f4beb Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sat, 28 Jan 2012 21:02:09 +0000 Subject: - Fixed bug #60860 (session.save_handler=user without defined function core dumps) --- ext/session/mod_user.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ext/session/mod_user.c') diff --git a/ext/session/mod_user.c b/ext/session/mod_user.c index cf13e4b46e..2ff5302f78 100644 --- a/ext/session/mod_user.c +++ b/ext/session/mod_user.c @@ -80,6 +80,13 @@ PS_OPEN_FUNC(user) { zval *args[2]; STDVARS; + + if (PSF(open) == NULL) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, + "user session functions not defined"); + + return FAILURE; + } SESS_ZVAL_STRING((char*)save_path, args[0]); SESS_ZVAL_STRING((char*)session_name, args[1]); -- cgit v1.2.1