We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I get error when using /*{ and }*/ as delimiters;
/*{
}*/
$smarty = new Smarty(); $smarty -> setLeftDelimiter('/*{'); $smarty -> setRightDelimiter('}*/'); $smarty -> setTemplateDir('.'); echo $smarty -> fetch('test.tpl');
test.tpl
/*{$variable = 'value'}*/ /*{$variable}*/
result
PHP Warning: preg_match(): Unknown modifier ')' in .../vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatelexer.php on line 577
This is because used delimiters '/' instead '' in regular expressions but escaped ''
smarty/libs/sysplugins/smarty_internal_templatelexer.php:212
`preg_quote($this->smarty->left_delimiter, '~')`
Thanks!
The text was updated successfully, but these errors were encountered:
- bugfix compiling of templates failed when the Smarty delimiter did …
0430164
…contain '/' #264
The fix is now in the master branch
Sorry, something went wrong.
No branches or pull requests
I get error when using
/*{
and}*/
as delimiters;test.tpl
result
This is because used delimiters '/' instead '
' in regular expressions'but escaped '
smarty/libs/sysplugins/smarty_internal_templatelexer.php:212
Thanks!
The text was updated successfully, but these errors were encountered: