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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: tfranz at moleman dot de
New email:
PHP Version: OS:

 

 [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-2021 The PHP Group
All rights reserved.
Last updated: Sun Aug 01 15:01:24 2021 UTC