#22430 [Opn->Csd]: HTML_Template_ITX::placeholderExists() is broken

From: Date: Wed, 12 Mar 2003 02:31:11 +0000
Subject: #22430 [Opn->Csd]: HTML_Template_ITX::placeholderExists() is broken
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-14210@lists.php.net to get a copy of this message
ID: 22430 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:41:38] borz_off at cs dot msu dot su require_once 'HTML/Template/ITX.php'; $tpl = new HTML_Template_ITX(); $tpl->setTemplate('{var}'); // no placeholder {foobar} in template, should return false if ($tpl->placeholderExists('foobar')) { echo 'broken!'; } else { echo 'ok!'; } The script prints 'broken!' instead of 'ok!'. see also comments to http://bugs.php.net/bug.php?id=18949 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22430&edit=1

« previous php.pear.dev (#14210) next »