Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4552 Update CVarDumper.php for PHP 8.3 changes to highlight_string #4562

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions framework/utils/CVarDumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static function dumpAsString($var,$depth=10,$highlight=false)
if($highlight)
{
$result=highlight_string("<?php\n".self::$_output,true);
self::$_output=preg_replace('/&lt;\\?php<br \\/>/','',$result,1);
self::$_output=preg_replace('/&lt;\\?php(<br \\/>|'."\n".')/','',$result,1);
marcovtwout marked this conversation as resolved.
Show resolved Hide resolved
}
return self::$_output;
}
Expand Down Expand Up @@ -137,4 +137,4 @@ private static function dumpInternal($var,$level)
break;
}
}
}
}