TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Utility\PhpOptionsUtility Class Reference
Inheritance diagram for TYPO3\CMS\Core\Utility\PhpOptionsUtility:
t3lib_utility_PhpOptions

Static Public Member Functions

static isSafeModeEnabled ()
 
static isMagicQuotesGpcEnabled ()
 
static isSqlSafeModeEnabled ()
 
static isSessionAutoStartEnabled ()
 
static getIniValueBoolean ($configOption)
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Class to handle php environment specific options / functions

Author
Christian Kuhn lolli.nosp@m.@sch.nosp@m.warzb.nosp@m.u.ch

Definition at line 21 of file PhpOptionsUtility.php.

Member Function Documentation

◆ getIniValueBoolean()

static TYPO3\CMS\Core\Utility\PhpOptionsUtility::getIniValueBoolean (   $configOption)
static

Cast a on/off php ini value to boolean

Parameters
string$configOption
Returns
boolean TRUE if the given option is enabled, FALSE if disabled

Definition at line 77 of file PhpOptionsUtility.php.

◆ isMagicQuotesGpcEnabled()

static TYPO3\CMS\Core\Utility\PhpOptionsUtility::isMagicQuotesGpcEnabled ( )
static

Check if php magic_quotes_gpc is enabled

Returns
boolean TRUE if magic_quotes_gpc is enabled, FALSE if disabled
Deprecated:
since 6.1, will be removed two versions later

Definition at line 43 of file PhpOptionsUtility.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\logDeprecatedFunction().

◆ isSafeModeEnabled()

static TYPO3\CMS\Core\Utility\PhpOptionsUtility::isSafeModeEnabled ( )
static

Check if php safe_mode is enabled

Returns
boolean TRUE if safe_mode is enabled, FALSE if disabled
Deprecated:
since 6.1, will be removed two versions later

Definition at line 29 of file PhpOptionsUtility.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\logDeprecatedFunction().

◆ isSessionAutoStartEnabled()

static TYPO3\CMS\Core\Utility\PhpOptionsUtility::isSessionAutoStartEnabled ( )
static

Check if php session.auto_start is enabled

Returns
boolean TRUE if session.auto_start is enabled, FALSE if disabled

Definition at line 67 of file PhpOptionsUtility.php.

◆ isSqlSafeModeEnabled()

static TYPO3\CMS\Core\Utility\PhpOptionsUtility::isSqlSafeModeEnabled ( )
static

Check if php sql.safe_mode is enabled

Returns
boolean TRUE if sql.safe_mode is enabled, FALSE if disabled
Deprecated:
since 6.2, will be removed two versions later

Definition at line 57 of file PhpOptionsUtility.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\logDeprecatedFunction().