Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug #14782 logic problem in SOAP_Base bulids multidimensional arrays …

…instead of flat

git-svn-id: http://svn.php.net/repository/pear/packages/SOAP/trunk@322283 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit b2f170edf7c9a65604d734f9ba16bdb24b938149 1 parent 0944483
@CloCkWeRX CloCkWeRX authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 Base.php
View
6 Base.php
@@ -822,7 +822,11 @@ function _decode($soapval)
$isstruct = false;
$return = array($return->{$item->name}, $d);
} else {
- $return->{$item->name} = array($return->{$item->name}, $d);
+ if (is_array($return->{$item->name})) {
+ $return->{$item->name} = array_merge($return->{$item->name}, array($d));
+ } else {
+ $return->{$item->name} = array($return->{$item->name}, $d);
+ }
}
} else {
$return->{$item->name} = $this->_decode($item);
Please sign in to comment.
Something went wrong with that request. Please try again.