Skip to content

Commit

Permalink
Avoid fatal error in session handler
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Aug 14, 2020
1 parent cfaa270 commit 2ca5d66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/session/mod_user_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
php_error_docref(NULL, E_WARNING, "Session is not active"); \
RETURN_FALSE; \
} \
if (PS(default_mod) == NULL) { \
php_error_docref(NULL, E_CORE_ERROR, "Cannot call default session handler"); \
RETURN_FALSE; \
if (PS(default_mod) == NULL) { \
zend_throw_error(NULL, "Cannot call default session handler"); \
RETURN_THROWS(); \
}

#define PS_SANITY_CHECK_IS_OPEN \
Expand Down

0 comments on commit 2ca5d66

Please sign in to comment.