PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_Template_IT » Bug #9753

Template rendering fails silently if invalid root supplied

Details

Request #9753Template rendering fails silently if invalid root supplied
Submitted2007-01-06 01:04 UTC
Frompear-bug at andywaite dot com
Assignedgregorycu
StatusWont fix
PackageHTML_Template_IT
PHP Version4.4.4
OSMac OS X 10.4, probably others
Roadmaps(Not assigned)

Comments

[2007-01-06 01:04 UTC] pear-bug at andywaite dot com

Description:
------------
As summary.

'badpath' refers to a path on the system which does not exist or is otherwise invalid.

Test script:
---------------
require_once "HTML/Template/IT.php";
$template = new HTML_Template_IT("./badpath");
$template->loadTemplatefile("test.tpl", false, true);
$template->setCurrentBlock("TESTBLOCK");
$template->setVariable("TESTPLACEHOLDER", "test");
$template->parseCurrentBlock();
$template->show();

Expected result:
----------------
An error/message reporting that 'badpath' does not exist.

Actual result:
--------------
Template renders as blank.

[2007-01-06 01:05 UTC] pear-bug at andywaite dot com

(correcting summary)