From b4dc05df1292c785162eaf7ebdc7f629dfd63fdf Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Tue, 28 Jul 2015 01:35:24 +0200 Subject: [PATCH] remove PHP_ALLOW test for <--', 'PHP_ALLOW, \'script.tpl\''), array(Smarty::PHP_ALLOW, 'phptag.tpl', '--> hello world {php} {/php} <--', 'PHP_ALLOW, \'phptag.tpl\''), array(Smarty::PHP_ALLOW, 'phptag_line_comment.tpl', '--> hello world {php} {/php} <--', 'PHP_ALLOW, \'phptag_line_comment.tpl\''), array(Smarty::PHP_ALLOW, 'phptag_block_comment.tpl', '--> hello world {php} {/php} <--', 'PHP_ALLOW, \'phptag_block_comment.tpl\''), @@ -143,6 +142,10 @@ echo \'bar \'; $foo = 3; { /php}<--', 'PHP_ALLOW, \'phptag_literal.tpl\''), ); + if (version_compare(phpversion(), '7.0.0', '<')) { + $data[] = array(Smarty::PHP_ALLOW, 'script.tpl', '--> hello world <--', 'PHP_ALLOW, \'script.tpl\''); + } + return $data; } /* * Call back function for $php_handling = PHP_QUOTE