Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.14.0

Bug #4074 problem with the wdsl creation
Submitted: 2005-04-06 08:31 UTC
From: phil_soap at smurfy dot de Assigned: chagenbu
Status: Closed Package: SOAP
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [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

Comments

 [2005-04-09 03:19 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!