diff --git a/PHPUnit/Util/XML.php b/PHPUnit/Util/XML.php index 933c4935f4f..c8ce16d1283 100644 --- a/PHPUnit/Util/XML.php +++ b/PHPUnit/Util/XML.php @@ -64,9 +64,12 @@ class PHPUnit_Util_XML */ public static function prepareString($string) { - return preg_replace( - '([\\x00-\\x04\\x0b\\x0c\\x0e-\\x1f\\x7f])e', - 'sprintf( "&#x%02x;", ord( "\\1" ) )', + return preg_replace_callback( + '([\\x00-\\x04\\x0b\\x0c\\x0e-\\x1f\\x7f])', + function ($matches) + { + return sprintf('&#x%02x;', ord($matches[1])); + }, htmlspecialchars( PHPUnit_Util_String::convertToUtf8($string), ENT_COMPAT, 'UTF-8' ) diff --git a/build/dependencies/PHP_CodeCoverage-1.2.6.tgz b/build/dependencies/PHP_CodeCoverage-1.2.6.tgz deleted file mode 100644 index e52589bd790..00000000000 Binary files a/build/dependencies/PHP_CodeCoverage-1.2.6.tgz and /dev/null differ diff --git a/build/dependencies/PHP_CodeCoverage-1.2.7.tgz b/build/dependencies/PHP_CodeCoverage-1.2.7.tgz new file mode 100644 index 00000000000..bbf5bf1d6f0 Binary files /dev/null and b/build/dependencies/PHP_CodeCoverage-1.2.7.tgz differ