NYCPHP Meetup

NYPHP.org

[nycphp-talk] php-gtk error handling

Scott Mattocks crisscott at netzero.com
Fri Jun 18 11:31:52 EDT 2004


Jon Baer wrote:

> when handling crashes outside of php w/gtk is it just feasible to trap 
> all errors the normal way?
> 
> set_error_handler("gtkException"); ?
> 
> id like to just get a normal dialog/info box but does this handle 
> everything outside of php (for example missing widget sets,etc) ...

I think that should do everything you need.  Anytime I do something 
stupid like connect an event that a widget doesn't listen for I get PHP 
errors not some other type of error.  I think the PHP-GTK team was 
pretty good about making sure that all GTK errors were handled with PHP.

Scott Mattocks



More information about the talk mailing list
Automatic Email Organization without missing anything!