> > One problem I have encountered frequently enough to be annoying (but
> > not enough to do anything about) was that ocassionally the line
> > numbers of a TMPL error, didn't match up with the line that the
> > error occurred on.  As a result of my work on making H::T support
> > custom TMPL_xxxx tag definitions, I came across this bug as it
> > become rather blatent, and thus have found the solution for it.
> 
> Do you think you could show me a small test template and test script
> which demonstrates the problem?  I'll need to add a test case to the
> test script, but I'm not sure exactly what I should be looking for.

err... umm......

Attached are a few tamplates and a test case.  I had to patch an origonal 2.6 version 
to include the 'includes_debug' option, so as to verify that these do actually show 
the bug.

If you apply the patch, then search for the FIXME, you will be able to enable/disable 
each section of code.  By printing the @fstack you will be able to see that test3.tmpl 
is detected before test2.tmpl is completed.

Hope this helps,
Mathew

Attachment: Template.pm.patch
Description: Binary data

Attachment: test1.tmpl
Description: Binary data

Attachment: test2.tmpl
Description: Binary data

Attachment: test3.tmpl
Description: Binary data

Attachment: test4.tmpl
Description: Binary data

Attachment: test5.tmpl
Description: Binary data

Attachment: testme.pl
Description: Binary data

Reply via email to