zend_hash_destroy(&PS(vars));
}
+void _php_session_auto_start(void *data)
+{
+ PSLS_FETCH();
+
+ _php_session_start(PSLS_C);
+}
+
PHP_RINIT_FUNCTION(session)
{
PSLS_FETCH();
}
if(INI_INT("session.auto_start")) {
- php_error(E_ERROR, "session.auto_start is not available in this version. Disable it in your configuration.");
- return FAILURE;
+ php_register_post_request_startup(_php_session_auto_start, NULL);
}
-
-#if 0
- if(INI_INT("session.auto_start")) {
- _php_session_start(PSLS_C);
- }
-#endif
return SUCCESS;
}