- optimization get rid of __get and __set in source object

This commit is contained in:
Uwe Tews
2015-07-06 03:25:03 +02:00
parent b198e6488c
commit b1fdc085e7
15 changed files with 46 additions and 72 deletions
@@ -151,7 +151,7 @@ class Smarty_Internal_Compile_Foreach extends Smarty_Internal_CompileBase
$nextCompiler = $compiler;
while ($nextCompiler !== $nextCompiler->parent_compiler) {
$nextCompiler = $nextCompiler->parent_compiler;
preg_match_all($preg, $nextCompiler->template->source->content, $match, PREG_SET_ORDER);
preg_match_all($preg, $nextCompiler->template->source->getContent(), $match, PREG_SET_ORDER);
foreach ($match as $m) {
if (isset($m[3]) && !empty($m[3])) {
$itemAttr[strtolower($m[3])] = true;