Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

array to string conversion when generating debugging #7

Open
williamorazi opened this issue Apr 20, 2016 · 0 comments
Open

array to string conversion when generating debugging #7

williamorazi opened this issue Apr 20, 2016 · 0 comments

Comments

@williamorazi
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant