?? ??? 2000, Version 4.0.4
+- Fixed a bug in session.c. The php_session_save_current_state did not check
+ if mod_data is NULL and such situation is possible if the user calls
+ session_module_name with a parameter. (alex@zend.com)
- IIS Admin mudule added
- OCIBindByName() now does better parameter-checking. (Thies)
- Attempted to make compile fixes for Solaris in ext/sockets/sockets.c (Chris Vandomelen)
}
}
- val = php_session_encode(&vallen PSLS_CC);
- if (val) {
- ret = PS(mod)->write(&PS(mod_data), PS(id), val, vallen);
- efree(val);
- } else
- ret = PS(mod)->write(&PS(mod_data), PS(id), "", 0);
+ if (PS(mod_data)) {
+ val = php_session_encode(&vallen PSLS_CC);
+ if (val) {
+ ret = PS(mod)->write(&PS(mod_data), PS(id), val, vallen);
+ efree(val);
+ } else {
+ ret = PS(mod)->write(&PS(mod_data), PS(id), "", 0);
+ }
+ }
if (ret == FAILURE)
php_error(E_WARNING, "Failed to write session data (%s). Please "
PS(save_path));
- PS(mod)->close(&PS(mod_data));
+ if (PS(mod_data))
+ PS(mod)->close(&PS(mod_data));
}
static char *month_names[] = {