Skip to content

Commit 49dc810

Browse files
committed
Change substr_replace usage in previous fix.
1 parent b190a15 commit 49dc810

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Symfony/src/Codebender/CompilerBundle/Handler/CompilerHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ private function cleanUpClangOutput ($clang_output, $compiler_config) {
11521152

11531153
if ($header != "" && $body != "") {
11541154
if (strpos($header, "</font></b>") == 0)
1155-
$header = substr_replace("</font></b>", '', 0, 11);
1155+
$header = substr_replace($header, '', 0, 11);
11561156
if (array_key_exists($key + 1, $content_line_array)
11571157
&& strpos($content_line_array[$key + 1], "</font></b>") == 0)
11581158
$body = $body . "</font></b>";
@@ -1178,7 +1178,7 @@ private function cleanUpClangOutput ($clang_output, $compiler_config) {
11781178
&& strpos($body, "in asm") === false) {
11791179
if ($header != "" && $body != "") {
11801180
if (strpos($header, "</font></b>") == 0)
1181-
$header = substr_replace("</font></b>", '', 0, 11);
1181+
$header = substr_replace($header, '', 0, 11);
11821182
$final .= $header ."\n";
11831183
$final .= $body . "\n";
11841184
}

0 commit comments

Comments
 (0)