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

Bug #7224 Children of ComplexTypes
Submitted: 2006-03-28 09:12 UTC
From: markus at emedia-solutions-wolf dot de Assigned: yunosh
Status: Closed Package: SOAP (version 0.9.3)
PHP Version: Irrelevant OS: Linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 36 - 14 = ?

 
 [2006-03-28 09:12 UTC] markus at emedia-solutions-wolf dot de (KnisterPeter)
Description: ------------ When one wants to get a child of a complex type but the complex type is a struct, then the method getComplexTypeChildType returns null. This is, because the the method getComplexTypeForElement always returns null for struct types. To get the child type in this case the method should be patched (see code below). function getComplexTypeChildType($ns, $name, $child_ns, $child_name) { // is the type an element? $t = $this->_getComplexTypeForElement($name, $ns); if ($t) { // no, get it from complex types directly if (isset($t['elements'][$child_name]['type'])) return $t['elements'][$child_name]['type']; } else { // Type is not an element but complex if (isset($this->ns[$ns]) && isset($this->elements[$this->ns[$ns]][$name]['complex']) && $this->elements[$this->ns[$ns]][$name]['complex']) { return $this->elements[$this->ns[$ns]][$name]['elements'][$child_name]['type']; } } return null; }

Comments

 [2007-01-20 01:17 UTC] yunosh (Jan Schneider)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.