Error handling etc

From: Date: Thu, 25 Nov 1999 02:28:16 +0000
Subject: Error handling etc
Groups: php.dev 
Request: Send a blank email to php-dev+get-13095@lists.php.net to get a copy of this message
I have noticed that you can break a running PHP execution with this code in the callbacks: PG(connection_status) = PHP_CONNECTION_ABORTED; zend_bailout(); Is there a way to break the execution without getting a callback though? Take for example a script that runs a loop with no output. If the client (browser) close the connection, how do I break the execution of that script? Can I, from a non-callback function, abort the connection in the same way as above? Is there anything else I should think about when it comes to error handling? -- [ Below is a random fortune, which is unrelated to the above message. ] Bennett's Laws of Horticulture: (1) Houses are for people to live in. (2) Gardens are for plants to live in. (3) There is no such thing as a houseplant.

« previous php.dev (#13095) next »