diff options
| author | Sascha Schumann <sas@php.net> | 2002-11-20 16:06:29 +0000 |
|---|---|---|
| committer | Sascha Schumann <sas@php.net> | 2002-11-20 16:06:29 +0000 |
| commit | e9ed065afce2c496c828b3845f021e0b197d25c2 (patch) | |
| tree | e4013fa9140a0c5e36597817b2f0586ef89aacad | |
| parent | 7908cffab42a0ebba9499f778065d2b57949f247 (diff) | |
| download | php-git-e9ed065afce2c496c828b3845f021e0b197d25c2.tar.gz | |
add protective checks to ini updates
Noticed by: Derick Rethans <d.rethans@jdimedia.nl>
PR: #20284
| -rw-r--r-- | ext/session/session.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index d06c0d29a9..f9b686da6a 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -85,6 +85,8 @@ static const ps_serializer *_php_find_ps_serializer(char *name TSRMLS_DC); static PHP_INI_MH(OnUpdateSaveHandler) { + if (PS(session_status) == php_session_active) + return; PS(mod) = _php_find_ps_module(new_value TSRMLS_CC); /* * Following lines are commented out to prevent bogus error message at @@ -102,6 +104,8 @@ static PHP_INI_MH(OnUpdateSaveHandler) static PHP_INI_MH(OnUpdateSerializer) { + if (PS(session_status) == php_session_active) + return; PS(serializer) = _php_find_ps_serializer(new_value TSRMLS_CC); /* * Following lines are commented out to prevent bogus error message at |
