Issue Bug Closed

#31404session.auto_start flag not checked correctly

Jochen Weiland 10/29/11, 22:53 updated 02/07/12, 08:17

Description

When loading, the install tool checks the status of the PHP flag session.auto_start and stops with an error message if auto_start is enabled.

The check is done in sysext/install/mod/class.tx_install_session.php:

if (ini_get('session.auto_start')) {

  (display error message and throw runtime exception)

}

This works as long as ini_get(‘session.auto_start’) returns an empty string.

We found that when running PHP in FCGI/FPM mode, the return value is the string “Off” and thus trowing the exception even if auto_start is not set.

In our PHP CGI configuration it works, since an empty string is returned instead of “Off”.

Tested with PHP 5.3.8

Our temporary solution was this patch:

if (ini_get('session.auto_start') == '1' || ini_get('session.auto_start') == 'On') {

  (display error message and throw runtime exception)

}

However as an alternative a function like those for checking safe_mode setting in t3lib/utility/class.t3lib_utility_phpoptions.php could be implemented.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.