#18949 [NEW]: ITX: Minor mistake in 'placeholderExists()' ?
| From: | heino at gehlsen dot dk | Date: | Fri, 16 Aug 2002 20:46:01 +0000 |
| Subject: | #18949 [NEW]: ITX: Minor mistake in 'placeholderExists()' ? | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-8465@lists.php.net to get a copy of this message | ||
From: heino@gehlsen.dk
Operating system: Debian 3.0
PHP version: 4.2.1
PHP Bug Type: PEAR related
Bug description: ITX: Minor mistake in 'placeholderExists()' ?
I can't get placeholderExists() to work without making minor changes to the
code:
[...]
while (list($k, $variable) = each($variables))
- if ($variable == $placeholder) {
+ if ($k == $placeholder) {
$found = $block;
[...]
(boolean) $variable != (string) $placeholder.
(string) $k = (string) $placeholder.
PS.
I don't have the time to check if it's placeholderExists() that is buggy
or if it is $this->blockvariables' - sorry...
--
Edit bug report at http://bugs.php.net/?id=18949&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=18949&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=18949&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18949&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18949&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18949&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18949&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18949&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18949&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18949&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18949&r=globals