#22430 [NEW]: HTML_Template_ITX::placeholderExists() is broken
| From: | borz_off at cs dot msu dot su | Date: | Wed, 26 Feb 2003 12:41:38 +0000 |
| Subject: | #22430 [NEW]: HTML_Template_ITX::placeholderExists() is broken | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-13911@lists.php.net to get a copy of this message | ||
From: borz_off at cs dot msu dot su
Operating system: all
PHP version: 4.2.3
PHP Bug Type: PEAR related
Bug description: HTML_Template_ITX::placeholderExists() is broken
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 bug report at http://bugs.php.net/?id=22430&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22430&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22430&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22430&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22430&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22430&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22430&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22430&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22430&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22430&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22430&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22430&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22430&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22430&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22430&r=gnused