Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 8, 2020. It is now read-only.

[Soap/Server] add debug mode#5792

Merged
weierophinney merged 4 commits into
zendframework:developfrom
lilobase:SoapServerDebugMode
Mar 4, 2014
Merged

[Soap/Server] add debug mode#5792
weierophinney merged 4 commits into
zendframework:developfrom
lilobase:SoapServerDebugMode

Conversation

@lilobase
Copy link
Copy Markdown
Contributor

@lilobase lilobase commented Feb 6, 2014

When an exception is raised the \Zend\Soap\Server catch it and check if this is an authorized exception.
If not, and for security reason, it send an "Unknow error" message.
And if in production its a sane behaviour, its really annoying during development & tests process.

So I propose to add a setDebugMode method, when activated, send all exceptions to the client.

The code is unit-tested.

Comment thread library/Zend/Soap/Server.php Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

use bool instead of boolean for consistency

@lilobase
Copy link
Copy Markdown
Contributor Author

lilobase commented Feb 6, 2014

All right, fixed !

@samsonasik
Copy link
Copy Markdown
Contributor

👍

Comment thread library/Zend/Soap/Server.php Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

one more thing, add open { after if ($this->debug) , so it should be :

if ($this->debug) {
    return true;
}

@lilobase
Copy link
Copy Markdown
Contributor Author

lilobase commented Feb 8, 2014

done :)

Comment thread library/Zend/Soap/Server.php Outdated
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.

Setters in this class follows fluent interface so please, follow the same pattern,

@lilobase
Copy link
Copy Markdown
Contributor Author

Changes are committed, UT are updated

@weierophinney weierophinney added this to the 2.3.0 milestone Mar 3, 2014
weierophinney added a commit that referenced this pull request Mar 4, 2014
weierophinney added a commit that referenced this pull request Mar 4, 2014
@weierophinney weierophinney merged commit d704a8a into zendframework:develop Mar 4, 2014
weierophinney added a commit to zendframework/zend-soap that referenced this pull request May 15, 2015
…pServerDebugMode

[Soap/Server] add debug mode
weierophinney added a commit to zendframework/zend-soap that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants