Call this from your SAPI module to signal an aborted connection.
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;
PHPAPI int php_handle_special_queries(SLS_D PLS_DC);
PHPAPI int php_lint_script(zend_file_handle *file CLS_DC ELS_DC PLS_DC);
+PHPAPI void php_handle_aborted_connection(void);
PHPAPI int php_handle_auth_data(const char *auth SLS_DC);
extern void php_call_shutdown_functions(void);