remove PHP_ALLOW test for <script language='php'> for PHP 7 as it is not supported

This commit is contained in:
Uwe Tews
2015-07-28 01:47:08 +02:00
parent b4dc05df12
commit 63b3f4c522

View File

@@ -142,7 +142,7 @@ echo \'bar \';
$foo = 3;
{ /php}<--', 'PHP_ALLOW, \'phptag_literal.tpl\''),
);
if (version_compare(phpversion(), '7.0.0', '<')) {
if (version_compare(phpversion(), '5.7.0', '<')) {
$data[] = array(Smarty::PHP_ALLOW, 'script.tpl', '--> hello world <script language=\'php\'> </script> <--', 'PHP_ALLOW, \'script.tpl\'');
}
return $data;