Project

General

Profile

Actions

Bug #16588

closed

Inconsistent return values of ini_get() produce false positives for safe_mode detection

Added by Christian Boltz almost 18 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
Install Tool
Target version:
-
Start date:
2006-09-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Typo3's install tool told me that safe_mode is on, while I was sure that it was off (also verified using phpinfo().

I pinned down the problem - it has to do with doing PHP settings using php_admin_value / php_admin_flag apache configuration directives.

Testcase:
echo "safe_mode status: " . ini_get('safe_mode');
if (ini_get('safe_mode')) { echo " ACTIVE"; }
?>

The result depends on the apache configuration you use to switch off safe_mode

Result with php_admin_flag safe_mode off (or without overriding php.ini settings at all)
safe_mode status: 0 <-- expected

Result with php_admin_value safe_mode off
safe_mode status: off ACTIVE <--- NOT expected

The safe_mode check should check for "on" and true.

- Add php_admin_value safe_mode off to your apache configuration, reload apache
- check safe_mode status in the install tool
(tested using PHP 5.1.2 on SUSE Linux 10.1)

(issue imported from #M4272)


Files

4272_01.diff (9.92 KB) 4272_01.diff Administrator Admin, 2010-05-14 17:55
4272_02.diff (9.71 KB) 4272_02.diff Administrator Admin, 2010-10-01 14:03
4272_03.diff (9.75 KB) 4272_03.diff Administrator Admin, 2010-10-01 21:37
4272_05.diff (10.6 KB) 4272_05.diff Administrator Admin, 2010-10-29 14:33

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #14202: ImageMagic detection fails in safe_modeClosedMichael Stucki2004-06-14

Actions
Actions

Also available in: Atom PDF