From: Christian Weiske Date: Fri, 13 Apr 2012 18:25:52 +0000 (+0200) Subject: do not overwrite variable X-Git-Tag: v0.1.0~37 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/f5f35ee2ddf29469a7fda73f7c9f15faa740debf do not overwrite variable --- diff --git a/src/phorkie/Tool/Xmllint.php b/src/phorkie/Tool/Xmllint.php index b9917f5..a724e6c 100644 --- a/src/phorkie/Tool/Xmllint.php +++ b/src/phorkie/Tool/Xmllint.php @@ -27,8 +27,8 @@ class Tool_Xmllint if (substr($line, 0, $fpathlen) != $fpath) { throw new Exception('xmllint does not behave as expected: ' . $line); } - list($line, $msg) = explode(':', substr($line, $fpathlen + 1), 2); - $res->annotations[$line][] = new Tool_Result_Line( + list($linenum, $msg) = explode(':', substr($line, $fpathlen + 1), 2); + $res->annotations[$linenum][] = new Tool_Result_Line( $msg, 'error' ); } @@ -41,4 +41,4 @@ class Tool_Xmllint } } -?> \ No newline at end of file +?>