diff options
author | Sascha Schumann <sas@php.net> | 2000-10-29 16:00:42 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2000-10-29 16:00:42 +0000 |
commit | 13183ed5c3d18abc8a352defdd3f567125fe5bb9 (patch) | |
tree | 02920747efe51b56764ae0d56499cd971916ff96 /main/main.c | |
parent | c38005a4f1ce2b22e5c63556bd963b36835f721f (diff) | |
download | php-git-13183ed5c3d18abc8a352defdd3f567125fe5bb9.tar.gz |
Add php_handle_aborted_connection()
Call this from your SAPI module to signal an aborted connection.
Diffstat (limited to 'main/main.c')
-rw-r--r-- | main/main.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/main/main.c b/main/main.c index 90e41c3f3d..e7bf7a4519 100644 --- a/main/main.c +++ b/main/main.c @@ -1214,6 +1214,17 @@ PHPAPI void php_execute_script(zend_file_handle *primary_file CLS_DC ELS_DC PLS_ free_alloca(old_cwd); } +PHPAPI void php_handle_aborted_connection(void) +{ + PLS_FETCH(); + + PG(connection_status) = PHP_CONNECTION_ABORTED; + + if (!PG(ignore_user_abort)) { + zend_bailout(); + } +} + PHPAPI int php_handle_auth_data(const char *auth SLS_DC) { int ret = -1; |