Req #9753 [Asn->WFx]: Template rendering fails silently if invalid root supplied
| From: | gregory dot currie at gmail dot com | Date: | Mon, 07 Jun 2010 20:18:49 +0000 |
| Subject: | Req #9753 [Asn->WFx]: Template rendering fails silently if invalid root supplied | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-3893@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=9753&edit=1
ID: 9753
Updated by: gregory.currie@gmail.com
Reported By: pear-bug at andywaite dot com
Summary: Template rendering fails silently if invalid root
supplied
-Status: Assigned
+Status: Wont fix
Type: Feature/Change Request
Package: HTML_Template_IT
Operating System: Mac OS X 10.4, probably others
Package Version: 1.2.1
PHP Version: 4.4.4
Assigned To: gregorycu
Roadmap Versions:
New Comment:
-Status: Assigned
+Status: Wont fix
Previous Comments:
------------------------------------------------------------------------
[2010-03-01 12:14:56] gregorycu
-Assigned To: dsp
+Assigned To: gregorycu
------------------------------------------------------------------------
[2008-01-10 03:27:34] najtje
You might want to look at:
http://pear.php.net/manual/en/core.pear.pear.seterrorhandling.php
BTW: Try this:
<?php
require_once('HTML/Template/IT.php');
PEAR::setErrorHandling(PEAR_ERROR_DIE);
$t = new HTML_Template_IT();
$t->loadTemplateFile('doesnotexist.tpl');
$t->touchBlock('__global__');
$t->show();
?>
------------------------------------------------------------------------
[2007-12-10 10:03:33] dsp
Hi,
I guess it fails silencly because IT is PHP4 and therefore cannot use
exceptions as needed to throw errors from a constructor.
We will change this in ITx2, but no in the current 1.2 branch.
------------------------------------------------------------------------
[2007-12-10 09:41:58] someone3x7
This isn't the only silent error. However, after a few hours of trying
to figure why some templates work and others don't and not finding
anything I've given up on this package.
------------------------------------------------------------------------
[2007-01-05 20:05:30] pear-bug at andywaite dot com
(correcting summary)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=9753
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=9753&edit=1