[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zend-engine2
Subject:    Re: [Zend Engine 2] Changeble stdout for errors and print methods
From:       "Stig S. Bakken" <ssb () alltheweb ! com>
Date:       2001-09-13 8:16:30
[Download RAW message or body]

In addition to the other tips people posted, take a look at the 
"html_errors" option also.

  - Stig

Thomas Watson wrote:

> Hi
> It should be possible to change the stdout for the PHP error handler 
> and, by an optional argument, the stdout of the 
> print/print_r/var_dump/etc. methods to something else than the browser.
> The basic problem of the error message is that it doesn't output XHTML. 
> When you are outputting XML to the browser and a PHP error occurs, the 
> browser generates an XML error saying that the XML is not valid (non 
> closed ML tags and XML are not a good cocktail).
> There is one simple thing besides outputting XHTML that could work with 
> the error handler: It could output as XML (inside a CDATA tag maybe). 
> But by changing the stdout for the error handler it would also be 
> possible to output all error messages into a database, a file, a port, a 
> console etc. The same goes for the print methods. Here it would be nice 
> to put debug data somewhere else than on the browser.
> /watson



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic