Browse Source

MFH: Fixes #45406 - Patch by oleg dot grenrus at dynamoid dot com

PECL
Kalle Sommer Nielsen 18 years ago
parent
commit
874b456078
  1. 2
      NEWS
  2. 18
      ext/session/session.c

2
NEWS

@ -4,6 +4,8 @@ PHP NEWS
- Fixed bug #45696 (Not all DateTime methods allow method chaining). (Derick)
- Fixed bug #45545 (DateInterval has a limitation of 4 chars for ISO
durations). (Derick)
- Fixed bug #45406 (session.serialize_handler declared by shared extension
fails). (Kalle, oleg dot grenrus at dynamoid dot com)
- Fixed bug #44100 (Inconsistent handling of static array declarations with
duplicate keys). (Dmitry)
- Fixed bug #43008 (php://filter uris ignore url encoded filternames and can't

18
ext/session/session.c

@ -1992,14 +1992,24 @@ PHP_RINIT_FUNCTION(session)
if (value) {
PS(mod) = _php_find_ps_module(value TSRMLS_CC);
}
}
if (PS(serializer) == NULL) {
char *value;
if (!PS(mod)) {
/* current status is unusable */
PS(session_status) = php_session_disabled;
return SUCCESS;
value = zend_ini_string("session.serialize_handler", sizeof("session.serialize_handler"), 0);
if(value) {
PS(serializer) = _php_find_ps_serializer(value TSRMLS_CC);
}
}
if (PS(mod) == NULL || PS(serializer) == NULL) {
/* current status is unusable */
PS(session_status) = php_session_disabled;
return SUCCESS;
}
if (PS(auto_start)) {
php_session_start(TSRMLS_C);
}

Loading…
Cancel
Save