PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Web Services » SOAP » Bug #4074

problem with the wdsl creation

Details

Submitted2005-04-06 08:31 UTC
Fromphil_soap at smurfy dot de
Assignedchagenbu
StatusClosed
PackageSOAP
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2005-04-06 08:31 UTC] phil_soap at smurfy dot de

Description:
------------
There is a small Problem with the WDSL creation.

while parsing the wdsl file it checks
all functions arguments for complex types.
if a arg is a complex type it adds a comment. (varname is $comment).

the problem is if you have a function like this:

function foo($bar,$foobar)
and $bar is a complex type and $foobar is a boolean.

it creates no comment fpr the complex type $bar, because the "new" comment for $foobar is empty and the var $comment will be overwritten.

it creates only for the lastest argument given a comment.

so here is the fix:

510c510
< $comments_final = '';
---
> $comments = '';
552d551
< $comments_final .= $comments;
568c567
< $class .= " function &$opname($args) {\n$comments_final$wrappers".
---
> $class .= " function &$opname($args) {\n$comments$wrappers".

it adds a new variable called $comments_final, to this variable i add the $comments created for each argument and finally adds the $comments_final.

hope that helps

smurfy