-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Implement request #47317: SoapServer::__getLastResponse() #15792
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
Conversation
Convenient for debugging.
@@ -983,6 +983,11 @@ PHP_METHOD(SoapServer, __construct) | |||
} | |||
} | |||
|
|||
if ((tmp = zend_hash_find(ht, ZSTR_KNOWN(ZEND_STR_TRACE))) != NULL && | |||
(Z_TYPE_P(tmp) == IS_TRUE || | |||
(Z_TYPE_P(tmp) == IS_LONG && Z_LVAL_P(tmp) == 1))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: you do not want to treat as string literals eventually ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand the question.
In any case, this check was copied over from SoapClient so that the behaviour is consistent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant considering "trace" => "true" but if this is consistent then it s fine :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see. Some people may be tempted to do this, and the annoying thing is that passing wrong types in the options array does not cause an exception, the option just gets ignored in that case... however, instead of allowing "true" I rather start throwing exceptions on wrong options.
Asking RM approval to land this in 8.4, @SakiTakamachi @ericmann @NattyNarwhal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't seem to regress and looks minor, should be ok i think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Convenient for debugging.