![]() |
TYPO3
7.6
|
Public Member Functions | |
getStatus () | |
Protected Attributes | |
$requiredPhpExtensions | |
Check system environment status
This class is a hardcoded requirement check of the underlying server and PHP system.
The class must not check for any TYPO3 specific things like specific configuration values or directories. It should not fail if there is no TYPO3 at all.
The only core code used is the class loader
This class is instantiated as the very first class during installation. It is meant to be standalone und must not have any requirements, except the status classes. It must be possible to run this script separated from the rest of the core, without dependencies.
This means especially:
The status messages and title must not include HTML, use plain text only. The return values of this class are not bound to HTML and can be used in different scopes (eg. as json array).
|
protected |
|
protected |
Checks if current directory (.) is in PHP include path
Definition at line 131 of file Check.php.
References Check\isWindowsOs(), and Check\trimExplode().
Referenced by Check\getStatus().
|
protected |
Check for disabled functions
Definition at line 390 of file Check.php.
References Check\trimExplode().
Referenced by Check\getStatus().
|
protected |
Check for doc_root ini setting
Definition at line 521 of file Check.php.
Referenced by Check\getStatus().
|
protected |
|
protected |
Check if file uploads are enabled in PHP
Definition at line 183 of file Check.php.
Referenced by Check\getStatus().
|
protected |
Check gdlib supports freetype
Definition at line 1349 of file Check.php.
Referenced by Check\getStatus().
|
protected |
Check gif support of GD library
Definition at line 1254 of file Check.php.
Referenced by Check\getStatus().
|
protected |
Check jgp support of GD library
Definition at line 1289 of file Check.php.
Referenced by Check\getStatus().
|
protected |
Check png support of GD library
Definition at line 1313 of file Check.php.
Referenced by Check\getStatus().
|
protected |
Check imagecreatetruecolor to verify gdlib works as expected
Definition at line 1223 of file Check.php.
Referenced by Check\getStatus().
|
protected |
Check for bug in libxml
Definition at line 1447 of file Check.php.
Referenced by Check\getStatus().
|
protected |
Checks whether we can use file names with UTF-8 characters. Configured system locale must support UTF-8 when UTF8filesystem is set
Definition at line 1127 of file Check.php.
References $GLOBALS.
Referenced by Check\getStatus().
|
protected |
|
protected |
Get max_input_vars status
Definition at line 651 of file Check.php.
References elseif.
Referenced by Check\getStatus().
|
protected |
Check memory settings
Definition at line 234 of file Check.php.
References elseif, and Check\getBytesFromSizeMeasurement().
Referenced by Check\getStatus().
|
protected |
Verify that mysqli.reconnect is set to 0 in order to avoid improper reconnects
Definition at line 466 of file Check.php.
Referenced by Check\getStatus().
|
protected |
Check open_basedir
Definition at line 547 of file Check.php.
Referenced by Check\getStatus().
|
protected |
Check accessibility and functionality of OpenSSL
Definition at line 617 of file Check.php.
Referenced by Check\getStatus().
|
protected |
Check PRCE module is loaded and minimum version
Definition at line 306 of file Check.php.
Referenced by Check\getStatus().
|
protected |
Check minimum PHP version
Definition at line 283 of file Check.php.
Referenced by Check\getStatus().
|
protected |
Check maximum post upload size correlates with maximum file upload
Definition at line 208 of file Check.php.
References Check\getBytesFromSizeMeasurement().
Referenced by Check\getStatus().
|
protected |
Check doc comments can be fetched by reflection
Definition at line 1058 of file Check.php.
Referenced by Check\getStatus().
|
protected |
Check register globals
Definition at line 1418 of file Check.php.
Referenced by Check\getStatus().
|
protected |
Check if a specific required PHP extension is loaded
string | $extension |
Definition at line 1202 of file Check.php.
Referenced by Check\getStatus().
|
protected |
Check if some opcode cache is loaded
Definition at line 990 of file Check.php.
References elseif, and GeneralUtility\makeInstance().
Referenced by Check\getStatus().
|
protected |
Check suhosin.executor.include.whitelist contains phar
Definition at line 923 of file Check.php.
References Check\isSuhosinLoadedAndActive().
Referenced by Check\getStatus().
|
protected |
Check suhosin.executor.include.whitelist contains vfs
Definition at line 956 of file Check.php.
References Check\isSuhosinLoadedAndActive().
Referenced by Check\getStatus().
|
protected |
Check suhosin.get.max_name_length
Definition at line 887 of file Check.php.
References Check\isSuhosinLoadedAndActive().
Referenced by Check\getStatus().
|
protected |
Check suhosin.get.max_value_length
Definition at line 851 of file Check.php.
References Check\isSuhosinLoadedAndActive().
Referenced by Check\getStatus().
|
protected |
Check suhosin.post.max_name_length
Definition at line 779 of file Check.php.
References Check\isSuhosinLoadedAndActive().
Referenced by Check\getStatus().
|
protected |
Check suhosin.post.max_vars
Definition at line 815 of file Check.php.
References Check\isSuhosinLoadedAndActive().
Referenced by Check\getStatus().
|
protected |
Check suhosin.request.max_varname_length
Definition at line 743 of file Check.php.
References Check\isSuhosinLoadedAndActive().
Referenced by Check\getStatus().
|
protected |
Check suhosin.request.max_vars
Definition at line 707 of file Check.php.
References Check\isSuhosinLoadedAndActive().
Referenced by Check\getStatus().
|
protected |
|
protected |
Checks the status of the trusted hosts pattern check
Definition at line 158 of file Check.php.
References $GLOBALS, GeneralUtility\ENV_TRUSTED_HOSTS_PATTERN_ALLOW_ALL, and GeneralUtility\hostHeaderValueMatchesTrustedHostsPattern().
Referenced by Check\getStatus().
|
protected |
Checks thread stack size if on windows with apache
Definition at line 1171 of file Check.php.
References Check\isWindowsOs().
Referenced by Check\getStatus().
|
protected |
If xdebug is loaded, the default max_nesting_level of 100 must be raised
Definition at line 572 of file Check.php.
References elseif.
Referenced by Check\getStatus().
|
protected |
Helper method to get the bytes value from a measurement string like "100k".
string | $measurement | The measurement (e.g. "100k") |
Definition at line 1547 of file Check.php.
References elseif.
Referenced by Check\checkMemorySettings(), and Check\checkPostUploadSizeIsHigherOrEqualMaximumFileUploadSize().
getStatus | ( | ) |
Get all status information as array with status objects
Definition at line 76 of file Check.php.
References Check\checkAlwaysPopulateRawPostDataSetting(), Check\checkCurrentDirectoryIsInIncludePath(), Check\checkDisableFunctions(), Check\checkDocRoot(), Check\checkDownloadsPossible(), Check\checkFileUploadEnabled(), Check\checkGdLibFreeTypeSupport(), Check\checkGdLibGifSupport(), Check\checkGdLibJpgSupport(), Check\checkGdLibPngSupport(), Check\checkGdLibTrueColorSupport(), Check\checkLibXmlBug(), Check\checkLocaleWithUTF8filesystem(), Check\checkMaxExecutionTime(), Check\checkMaxInputVars(), Check\checkMemorySettings(), Check\checkMysqliReconnectSetting(), Check\checkOpenBaseDir(), Check\checkOpenSslInstalled(), Check\checkPcreVersion(), Check\checkPhpVersion(), Check\checkPostUploadSizeIsHigherOrEqualMaximumFileUploadSize(), Check\checkReflectionDocComment(), Check\checkRegisterGlobals(), Check\checkRequiredPhpExtension(), Check\checkSomePhpOpcodeCacheIsLoaded(), Check\checkSuhosinExecutorIncludeWhiteListContainsPhar(), Check\checkSuhosinExecutorIncludeWhiteListContainsVfs(), Check\checkSuhosinGetMaxNameLength(), Check\checkSuhosinGetMaxValueLength(), Check\checkSuhosinPostMaxNameLength(), Check\checkSuhosinPostMaxVars(), Check\checkSuhosinRequestMaxVarnameLength(), Check\checkSuhosinRequestMaxVars(), Check\checkSystemLocale(), Check\checkTrustedHostPattern(), Check\checkWindowsApacheThreadStackSize(), Check\checkXdebugMaxNestingLevel(), Check\getSuhosinLoadedStatus(), Check\isSuhosinLoadedAndActive(), and Check\isTrueTypeFontWorking().
|
protected |
Get suhosin loaded status Should be called only if suhosin extension is loaded
\BadMethodCallException |
Definition at line 691 of file Check.php.
References Check\isSuhosinLoadedAndActive().
Referenced by Check\getStatus().
|
protected |
Helper method to find out if suhosin extension is loaded
Definition at line 1504 of file Check.php.
Referenced by Check\checkSuhosinExecutorIncludeWhiteListContainsPhar(), Check\checkSuhosinExecutorIncludeWhiteListContainsVfs(), Check\checkSuhosinGetMaxNameLength(), Check\checkSuhosinGetMaxValueLength(), Check\checkSuhosinPostMaxNameLength(), Check\checkSuhosinPostMaxVars(), Check\checkSuhosinRequestMaxVarnameLength(), Check\checkSuhosinRequestMaxVars(), Check\getStatus(), and Check\getSuhosinLoadedStatus().
|
protected |
Create true type font test image
Definition at line 1376 of file Check.php.
Referenced by Check\getStatus().
|
protected |
|
protected |
Test if this instance runs on windows OS
Definition at line 1490 of file Check.php.
Referenced by Check\checkCurrentDirectoryIsInIncludePath(), and Check\checkWindowsApacheThreadStackSize().
|
protected |
Helper method to explode a string by delimiter and throw away empty values. Removes empty values from result array.
string | $delimiter | Delimiter string to explode with |
string | $string | The string to explode |
Definition at line 1528 of file Check.php.
Referenced by Check\checkCurrentDirectoryIsInIncludePath(), and Check\checkDisableFunctions().