Feature #51376
closedShow sting values for configured [SYS][exceptionalErrors] and similar codes
100%
Description
- [SYS][errorHandlerErrors]
- [SYS][exceptionalErrors]
- [SYS][syslogErrorReporting]
- [SYS][belogErrorReporting]
A viewhelper can be made to translate these numbers to strings, so the admin can see the textual configuration of the current value above the input field.
/** * Convert PHP error_reporting integer to string * * @param $value * @return array */ public static function error2string($value) { $levelNames = array( E_ERROR => 'E_ERROR', E_WARNING => 'E_WARNING', E_PARSE => 'E_PARSE', E_NOTICE => 'E_NOTICE', E_CORE_ERROR => 'E_CORE_ERROR', E_CORE_WARNING => 'E_CORE_WARNING', E_COMPILE_ERROR => 'E_COMPILE_ERROR', E_COMPILE_WARNING => 'E_COMPILE_WARNING', E_USER_ERROR => 'E_USER_ERROR', E_USER_WARNING => 'E_USER_WARNING', E_USER_NOTICE => 'E_USER_NOTICE' ); if (defined('E_STRICT')) { $levelNames[E_STRICT] = 'E_STRICT'; } $levels = array(); if (($value&E_ALL) == E_ALL) { $levels[] = 'E_ALL'; $value &= ~E_ALL; } foreach ($levelNames as $level => $name) { if (($value&$level) == $level) { $levels[] = $name; } } return $levels; }
Updated by Gerrit Code Review about 11 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23794
Updated by Gerrit Code Review about 11 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23794
Updated by Gerrit Code Review about 11 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23794
Updated by Gerrit Code Review about 11 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23794
Updated by Gerrit Code Review about 11 years ago
Patch set 5 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23794
Updated by Gerrit Code Review about 11 years ago
Patch set 6 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23794
Updated by Gerrit Code Review about 11 years ago
Patch set 7 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23794
Updated by Gerrit Code Review about 11 years ago
Patch set 8 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23794
Updated by Wouter Wolters about 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset b8222bd577b5a4f6b24de5fedced898f8c0fda09.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed