diff options
| author | Felipe Pena <felipe@php.net> | 2012-01-28 21:02:09 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2012-01-28 21:02:09 +0000 |
| commit | 2cb820275d83bc9730dd253c968ae8fd117f4beb (patch) | |
| tree | a82b40b58e1e5a5e26f690ce2536466d2b713102 /ext/session/mod_user.c | |
| parent | 6e77fce6a6bb6ba5dc69a5be13d8874f99bccf51 (diff) | |
| download | php-git-2cb820275d83bc9730dd253c968ae8fd117f4beb.tar.gz | |
- Fixed bug #60860 (session.save_handler=user without defined function core dumps)
Diffstat (limited to 'ext/session/mod_user.c')
| -rw-r--r-- | ext/session/mod_user.c | 7 |
1 files changed, 7 insertions, 0 deletions
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]); |
