Skip to content

Commit

Permalink
changed the way we check for HHVM
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Aug 4, 2014
1 parent 1d093a4 commit 3e6c955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Twig/Extension/Core.php
Expand Up @@ -944,7 +944,7 @@ function twig_escape_filter(Twig_Environment $env, $string, $strategy = 'html',
static $htmlspecialcharsCharsets;

if (null === $htmlspecialcharsCharsets) {
if ('hiphop' === substr(PHP_VERSION, -6)) {
if (defined('HHVM_VERSION')) {
$htmlspecialcharsCharsets = array('utf-8' => true, 'UTF-8' => true);
} else {
$htmlspecialcharsCharsets = array(
Expand Down

0 comments on commit 3e6c955

Please sign in to comment.