Home » HTML » HTML_Template_IT » Bug #6160
unused vars in __global__ removes the block
Details
| Submitted | 2005-12-05 17:53 UTC |
|---|---|
| From | cweiss at gmail dot com |
| Assigned | dsp |
| Status | No Feedback |
| Package | HTML_Template_IT |
| PHP Version | 5.1.0 |
| OS | win32 |
| Roadmaps | (Not assigned) |
Comments
[2005-12-05 17:53 UTC] cweiss at gmail dot com
Description:
------------
__global__ block gets removed, producing no document and no error, if the vars in the global block are not set, even if removeEmptyBlocks is false. As long as at least one var is set in the block it works.
Test script:
---------------
test.tpl: <html><body>foo is {foo}</body></html>
<?php
require_once "HTML/Template/IT.php";
$tpl = new HTML_Template_IT('./templates');
$tpl->loadTemplatefile("test.tpl", true, false);
$tpl->show();
?>
Expected result:
----------------
<html><body>foo is </body></html>
Actual result:
--------------
NULL
[2006-12-03 19:08 UTC] dsp at php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.