ZF-3338: Zend_Rest_Server faults with blank page

Issue Type: Bug Created: 2008-05-28T04:02:08.000+0000 Last Updated: 2008-06-01T13:25:18.000+0000 Status: Resolved Fix version(s): Reporter: Christian Kissner (chrispsm&w) Assignee: Davey Shafik (davey) Tags: - Zend_Rest_Server

Related issues: - ZF-3104



The fault exception handler registered in the constructor fails to output anything (resulting inempty pages) because fault() is designed to return the DomDocument instead. Suggest to register an separate echoing handler for uncaught exceptions only.

<pre class="highlight">
     * Constructor
    public function __construct()
        set_exception_handler(array($this, "echoFault"));
        $this->_reflection = new Zend_Server_Reflection();

     * echo exception document
     * registered handler when all else fails
     * @param string|Exception $fault Message
     * @param int $code Error Code
     * @return DOMDocument

    public function echoFault($exception = null, $code = null)
        echo $this->fault($exception,$code)->saveXML(); 


Posted by Wil Sinclair (wil) on 2008-06-01T13:23:55.000+0000

Assigning, updating to meet IT conventions, and resolving as a duplicate.

Posted by Wil Sinclair (wil) on 2008-06-01T13:25:18.000+0000

Please look for existing issues before creating a new one. If there is something I've missed here, feel free to reopen this issue with an explanation.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.