-
-
Save withinboredom/31c76967f229d657b26fa383091e67ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Subject: [PATCH] commented code | |
--- | |
Index: frankenphp.c | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
diff --git a/frankenphp.c b/frankenphp.c | |
--- a/frankenphp.c (revision d505f7bcf955562212c2869607de15de3ab0cae8) | |
+++ b/frankenphp.c (date 1692398342573) | |
@@ -436,13 +436,14 @@ | |
return 0; | |
} | |
- struct go_ub_write_return result = go_ub_write(ctx->current_request ? ctx->current_request : ctx->main_request, (char *) str, str_length); | |
+ //struct go_ub_write_return result = go_ub_write(ctx->current_request ? ctx->current_request : ctx->main_request, (char *) str, str_length); | |
- if (result.r1) { | |
- php_handle_aborted_connection(); | |
- } | |
+ //if (result.r1) { | |
+ // php_handle_aborted_connection(); | |
+ //} | |
- return result.r0; | |
+ //return result.r0; | |
+ return str_length; | |
} | |
static int frankenphp_send_headers(sapi_headers_struct *sapi_headers) | |
@@ -460,7 +461,7 @@ | |
h = zend_llist_get_first_ex(&sapi_headers->headers, &pos); | |
while (h) { | |
- go_add_header(ctx->current_request, h->header, h->header_len); | |
+ //go_add_header(ctx->current_request, h->header, h->header_len); | |
h = zend_llist_get_next_ex(&sapi_headers->headers, &pos); | |
} | |
@@ -471,7 +472,7 @@ | |
status = atoi((SG(sapi_headers).http_status_line) + 9); | |
} | |
- go_write_header(ctx->current_request, status); | |
+ //go_write_header(ctx->current_request, status); | |
return SAPI_HEADER_SENT_SUCCESSFULLY; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment