From 3e6c9551eba3f1e05d58e982bda9147d3c06331d Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 4 Aug 2014 21:55:24 +0200 Subject: [PATCH] changed the way we check for HHVM --- lib/Twig/Extension/Core.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/Twig/Extension/Core.php b/lib/Twig/Extension/Core.php index 3092eb8..ef36576 100644 --- a/lib/Twig/Extension/Core.php +++ b/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( -- 1.7.2.5