"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Neos.Flow/Classes/Error/Debugger.php" between
flow-development-collection-5.2.1.tar.gz and flow-development-collection-5.2.2.tar.gz

About: TYPO3 Flow is a web application platform enabling developers creating fast, reliable and complex web solutions ("the next level of PHP programming"; old name "FLOW3").

Debugger.php  (flow-development-collection-5.2.1):Debugger.php  (flow-development-collection-5.2.2)
skipping to change at line 121 skipping to change at line 121
* Renders a dump of the given variable * Renders a dump of the given variable
* *
* @param mixed $variable * @param mixed $variable
* @param integer $level * @param integer $level
* @param boolean $plaintext * @param boolean $plaintext
* @param boolean $ansiColors * @param boolean $ansiColors
* @return string * @return string
*/ */
public static function renderDump($variable, int $level, bool $plaintext = f alse, bool $ansiColors = false): string public static function renderDump($variable, int $level, bool $plaintext = f alse, bool $ansiColors = false): string
{ {
if ($level > 50) { if ($level > 5) {
return 'RECURSION ... ' . chr(10); return 'RECURSION ... ' . chr(10);
} }
if (is_string($variable)) { if (is_string($variable)) {
$croppedValue = (strlen($variable) > 2000) ? substr($variable, 0, 20 00) . '…' : $variable; $croppedValue = (strlen($variable) > 2000) ? substr($variable, 0, 20 00) . '…' : $variable;
if ($plaintext) { if ($plaintext) {
$dump = 'string ' . self::ansiEscapeWrap('"' . $croppedValue . ' "', '33', $ansiColors) . ' (' . strlen($variable) . ')'; $dump = 'string ' . self::ansiEscapeWrap('"' . $croppedValue . ' "', '33', $ansiColors) . ' (' . strlen($variable) . ')';
} else { } else {
$dump = sprintf('\'<span class="debug-string">%s</span>\' (%s)', htmlspecialchars($croppedValue), strlen($variable)); $dump = sprintf('\'<span class="debug-string">%s</span>\' (%s)', htmlspecialchars($croppedValue), strlen($variable));
} }
} elseif (is_numeric($variable)) { } elseif (is_numeric($variable)) {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)