Skip to content
Permalink
Browse files

changed the way we check for HHVM

  • Loading branch information...
fabpot committed Aug 4, 2014
1 parent 1d093a4 commit 3e6c9551eba3f1e05d58e982bda9147d3c06331d
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Twig/Extension/Core.php
@@ -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(

0 comments on commit 3e6c955

Please sign in to comment.
You can’t perform that action at this time.