#22429 [Opn->Csd]: Error handling is broken in HTML_Template_ITX
| From: | pajoye@php.net | Date: | Wed, 12 Mar 2003 02:32:04 +0000 |
| Subject: | #22429 [Opn->Csd]: Error handling is broken in HTML_Template_ITX | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-14211@lists.php.net to get a copy of this message | ||
ID: 22429
Updated by: pajoye@php.net
Reported By: borz_off at cs dot msu dot su
-Status: Open
+Status: Closed
Bug Type: PEAR related
Operating System: all
PHP Version: 4.2.3
Assigned To: pajoye
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2003-02-26 06:37:30] borz_off at cs dot msu dot su
require_once 'HTML/Template/ITX.php';
$tpl = new HTML_Template_ITX();
$tpl->setTemplate('{var}');
// error, no placeholder {foobar} in template
$err = $tpl->addBlock('foobar', 'foobar_block', '{newvar}');
instead of returning an error object, it dies with a fatal error:
Cannot instantiate non-existent class: it_error
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22429&edit=1