php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17992 ITX ignores callback parameters
Submitted: 2002-06-26 06:59 UTC Modified: 2002-07-02 17:07 UTC
From: tfranz at moleman dot de Assigned:
Status: Closed Package: PEAR related
PHP Version: 4.2.1 OS: Linux
Private report: No CVE-ID: None
 [2002-06-26 06:59 UTC] tfranz at moleman dot 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 
 
 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-02 17:07 UTC] mj@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 03:01:32 2024 UTC