Skip to content

Commit 2ca5d66

Browse files
committed
Avoid fatal error in session handler
1 parent cfaa270 commit 2ca5d66

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/session/mod_user_class.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
php_error_docref(NULL, E_WARNING, "Session is not active"); \
2323
RETURN_FALSE; \
2424
} \
25-
if (PS(default_mod) == NULL) { \
26-
php_error_docref(NULL, E_CORE_ERROR, "Cannot call default session handler"); \
27-
RETURN_FALSE; \
25+
if (PS(default_mod) == NULL) { \
26+
zend_throw_error(NULL, "Cannot call default session handler"); \
27+
RETURN_THROWS(); \
2828
}
2929

3030
#define PS_SANITY_CHECK_IS_OPEN \

0 commit comments

Comments
 (0)