For me it is exactly the other way around :)

When I return true in PHPTAL_Php_Attribute_METAL_FillSlot::shouldUseCallback(), 
my actual template works fine!
Returning false (and so disabling the optimisation) breaks the result.

It is the same with beta and the latest svn.

So maybe you should always use callbacks / optimisation?

Thanks so far!

-----Ursprüngliche Nachricht-----
[] Im Auftrag von Kornel Lesinski
Gesendet: Freitag, 25. Juni 2010 12:22
An: Template Attribute Language for PHP
Betreff: Re: [PHPTAL] Slots - the second...

On 25-06-2010 at 09:57:12 Per Bernhardt <> wrote:

Thanks. That's a great example. I've turned it into a test case - and it passes 
in the SVN version, but it may be just because the test is short.  
There's optimisation that turns "large" slot fills into callbacks to save 
memory and improve "streamability" of documents.

Try changing
and see if that "fixes" the bug.

regards, Kornel

PHPTAL mailing list

PHPTAL mailing list

Reply via email to