Bug #17992: ITX ignores callback parameters

From: Date: Wed, 26 Jun 2002 10:59:51 +0000
Subject: Bug #17992: ITX ignores callback parameters
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-7367@lists.php.net to get a copy of this message
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

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