Project

General

Profile

Actions

Bug #31404

closed

session.auto_start flag not checked correctly

Added by Jochen Weiland about 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Must have
Category:
Install Tool
Target version:
Start date:
2011-10-29
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
5.3
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

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.

Actions

Also available in: Atom PDF