Skip to content

Instantly share code, notes, and snippets.

@dstogov
Created October 8, 2021 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dstogov/65bf1f9be0db4a9a956d34e87256758c to your computer and use it in GitHub Desktop.
Save dstogov/65bf1f9be0db4a9a956d34e87256758c to your computer and use it in GitHub Desktop.
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c
index a2cc930b2f..bbab942b96 100644
--- a/ext/opcache/ZendAccelerator.c
+++ b/ext/opcache/ZendAccelerator.c
@@ -4578,7 +4578,9 @@ finish:
static size_t preload_ub_write(const char *str, size_t str_length)
{
- return fwrite(str, 1, str_length, stdout);
+ size_t ret = fwrite(str, 1, str_length, stdout);
+ fflush(stdout);
+ return ret;
}
static void preload_flush(void *server_context)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment