fergusean / nusoap

NuSOAP re-packaged for Packagist/Composer
http://sourceforge.net/projects/nusoap/
GNU Lesser General Public License v2.1
23 stars 72 forks source link

array to string conversion when generating debugging #7

Open williamorazi opened 8 years ago

williamorazi commented 8 years ago

See: https://github.com/fergusean/nusoap/blob/master/lib/class.wsdl.php#L1550

When looping through $value using $k (key) and $v (value) - a NOTICE is raised if $v is an array (array to string conversion).

Not a big deal, but it's causing an issue when using your class within a development environment. I'm extending your SOAP class within an email project. Emails are sent via AJAX, and returns a JSON response. As a result of the notice, it is breaking the JSON response (on dev environment only obviously).

I'm not sure how you'd like to handle this --- but I'm proposing possibly JSON encoding $v (json_encode($v)) if it is not an integer or string value.