PHP_INI_BEGIN()
PHP_INI_ENTRY_EX("safe_mode_protected_env_vars", SAFE_MODE_PROTECTED_ENV_VARS, PHP_INI_SYSTEM, OnUpdateSafeModeProtectedEnvVars, NULL)
PHP_INI_ENTRY_EX("safe_mode_allowed_env_vars", SAFE_MODE_ALLOWED_ENV_VARS, PHP_INI_SYSTEM, OnUpdateSafeModeAllowedEnvVars, NULL)
+ STD_PHP_INI_ENTRY("session.use_trans_sid", "1", PHP_INI_ALL, OnUpdateBool, use_trans_sid, php_basic_globals, basic_globals)
PHP_INI_END()
PHP_RINIT(dir)(INIT_FUNC_ARGS_PASSTHRU);
#ifdef TRANS_SID
- PHP_RINIT(url_scanner)(INIT_FUNC_ARGS_PASSTHRU);
+ if (BG(use_trans_sid)) {
+ PHP_RINIT(url_scanner)(INIT_FUNC_ARGS_PASSTHRU);
+ }
#endif
return SUCCESS;
/* var.c */
zend_class_entry *incomplete_class;
+ zend_bool use_trans_sid;
#ifdef TRANS_SID
/* url_scanner.c */
#include "php.h"
#include "ext/standard/head.h"
#include "ext/session/php_session.h"
+#include "basic_functions.h"
#include "SAPI.h"
/* output functions */
uint new_length=0;
int result;
OLS_FETCH();
+ BLS_FETCH();
- session_adapt_uris(str, str_length, &newstr, &new_length);
+ if (BG(use_trans_sid)) {
+ session_adapt_uris(str, str_length, &newstr, &new_length);
+ }
if (newstr) {
str = newstr;
#include "php.h"
#include "ext/standard/head.h"
#include "ext/session/php_session.h"
+#include "basic_functions.h"
#include "SAPI.h"
/* output functions */
uint new_length=0;
int result;
OLS_FETCH();
+ BLS_FETCH();
- session_adapt_uris(str, str_length, &newstr, &new_length);
+ if (BG(use_trans_sid)) {
+ session_adapt_uris(str, str_length, &newstr, &new_length);
+ }
if (newstr) {
str = newstr;