nusoap icon indicating copy to clipboard operation
nusoap copied to clipboard

array to string conversion when generating debugging

Open williamorazi opened this issue 8 years ago • 0 comments

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.

williamorazi avatar Apr 20 '16 21:04 williamorazi