diff --git a/src/main/php/PDepend/Source/Language/PHP/PHPTokenizerHelperVersion52.php b/src/main/php/PDepend/Source/Language/PHP/PHPTokenizerHelperVersion52.php index f3c862c2b5..3fce1bf6e4 100644 --- a/src/main/php/PDepend/Source/Language/PHP/PHPTokenizerHelperVersion52.php +++ b/src/main/php/PDepend/Source/Language/PHP/PHPTokenizerHelperVersion52.php @@ -115,9 +115,10 @@ public static function tokenize($source) */ private static function doTokenize($source) { - if (version_compare(phpversion(), '5.3.0alpha3') < 0) + if (version_compare(phpversion(), '5.3.0alpha3') < 0) { ini_set('track_errors', 'on'); } + $php_errormsg = null; $tokens = @token_get_all($source);