[prev in list] [next in list] [prev in thread] [next in thread]
List: pear-dev
Subject: [PEAR-DEV] Bug #17992: ITX ignores callback parameters
From: tfranz () moleman ! de
Date: 2002-06-26 10:59:51
[Download RAW message or body]
From: tfranz@moleman.de
Operating system: Linux
PHP version: 4.2.1
PHP Bug Type: PEAR related
Bug description: ITX ignores callback parameters
The ITX template class ignores the parameters given to a
callback function in the template. (the array remains
empty).
I fixed this already in my local copy.
Replace in buildFunctionList() the while-loop (line 590
and on) with following code:
while ('' != $head && $args2 = $this->getValue($head,
',')) {
$arg2 = trim($args2);
$args[] = ('"' == $arg2{0} || "'" ==
$arg2{0}) ? substr($arg2, 1, -1) : $arg2;
if ($arg2 == $head)
break;
$head = substr($head, strlen($arg2) + 1);
}
This should work. (but better read twice. I did not check
for side effects)
Tim
--
Edit bug report at http://bugs.php.net/?id=17992&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17992&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17992&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17992&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17992&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17992&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17992&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17992&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17992&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17992&r=globals
--
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic