Bug #17992 Updated: ITX ignores callback parameters
| From: | mj@php.net | Date: | Tue, 02 Jul 2002 21:07:58 +0000 |
| Subject: | Bug #17992 Updated: ITX ignores callback parameters | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-7444@lists.php.net to get a copy of this message | ||
ID: 17992
Updated by: mj@php.net
Reported By: tfranz@moleman.de
-Status: Open
+Status: Closed
Bug Type: PEAR related
Operating System: Linux
PHP Version: 4.2.1
New Comment:
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version 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.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-06-26 06:59:51] tfranz@moleman.de
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 this bug report at http://bugs.php.net/?id=17992&edit=1