Re: Catching SIGHUP
| From: | Edin Kadribasic | Date: | Thu, 11 Oct 2001 10:53:58 +0000 |
| Subject: | Re: Catching SIGHUP | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-67762@lists.php.net to get a copy of this message | ||
> On Wed, Oct 10, 2001 at 11:38:44PM -0500, Richard Lynch wrote :
> > Is it just impossible cuz PHP doesn't have try/catch error-handling?
>
> try/catch has nothing to do with signal handlers. By first bet is
> that ist just not imlpemented to call a php function when a
> signal occurs .... guess we'll have to implement it (at least for
> cgi ;)
Take a look at (very experimental) ext/pcntl. It let's you specify signal
handlers.
Edin