Skip to content

ext/soap: Improve SOAP scalar decoding error messages#22706

Open
LamentXU123 wants to merge 2 commits into
php:masterfrom
LamentXU123:soap-error-message
Open

ext/soap: Improve SOAP scalar decoding error messages#22706
LamentXU123 wants to merge 2 commits into
php:masterfrom
LamentXU123:soap-error-message

Conversation

@LamentXU123

Copy link
Copy Markdown
Member

ext/soap reported many malformed scalar values as the generic:

SOAP-ERROR: Encoding: Violation of encoding rules

which is utterly useless, and I don't even know which encoding method has what problem to be fixed.

This PR gives every these vague error message a better version, by at least claim out what is wrong and why.

Comment thread ext/soap/php_encoding.c
return ret;
}

static zval *to_zval_base64(zval *ret, encodeTypePtr type, xmlNodePtr data)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants