mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 04:16:28 +00:00
simplified code
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
<?php
|
||||
|
||||
if (!defined('ENT_SUBSTITUTE')) {
|
||||
if ('hiphop' === substr(PHP_VERSION, -6)) {
|
||||
// hhvm does not support this and worst, 8 is taken by another flag
|
||||
define('ENT_SUBSTITUTE', 0);
|
||||
} else {
|
||||
define('ENT_SUBSTITUTE', 8);
|
||||
}
|
||||
// use 0 as hhvm does not support several flags yet
|
||||
define('ENT_SUBSTITUTE', 0);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user