Re: [htmltmpl] Re: H::T bug
Brought to you by:
samtregar
From: Mathew R. <mat...@re...> - 2004-02-25 04:48:29
|
> > 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. >=20 > 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 |