Skip to content

Commit 3bce57b

Browse files
committed
% apply new changes for output.c
1 parent d8df823 commit 3bce57b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main/output.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ static inline php_output_handler_status_t php_output_handler_op(php_output_handl
961961
/* php_output_lock_error() doesn't fail for PHP_OUTPUT_HANDLER_WRITE but
962962
* anything that gets written will silently be discarded, remember that we
963963
* tried to write so a deprecation warning can be emitted at the end. */
964-
if (context->op == PHP_OUTPUT_HANDLER_WRITE && OG(active) && OG(running)) {
964+
if (context->op == PHP_OUTPUT_HANDLER_WRITE && ASYNC_OG(active) && ASYNC_OG(running)) {
965965
handler->flags |= PHP_OUTPUT_HANDLER_PRODUCED_OUTPUT;
966966
}
967967

@@ -1030,7 +1030,7 @@ static inline php_output_handler_status_t php_output_handler_op(php_output_handl
10301030
still_have_handler = false;
10311031
int handler_count = php_output_get_level();
10321032
if (handler_count) {
1033-
php_output_handler **handlers = (php_output_handler **) zend_stack_base(&OG(handlers));
1033+
php_output_handler **handlers = (php_output_handler **) zend_stack_base(&ASYNC_OG(handlers));
10341034
for (int handler_num = 0; handler_num < handler_count; ++handler_num) {
10351035
php_output_handler *curr_handler = handlers[handler_num];
10361036
if (curr_handler == handler) {
@@ -1084,7 +1084,7 @@ static inline php_output_handler_status_t php_output_handler_op(php_output_handl
10841084
if (still_have_handler) {
10851085
handler->flags |= PHP_OUTPUT_HANDLER_STARTED;
10861086
}
1087-
OG(running) = NULL;
1087+
ASYNC_OG(running) = NULL;
10881088
}
10891089

10901090
if (!still_have_handler) {
@@ -1321,7 +1321,7 @@ static int php_output_stack_pop(int flags)
13211321
bool still_have_handler = false;
13221322
int handler_count = php_output_get_level();
13231323
if (handler_count) {
1324-
php_output_handler **handlers = (php_output_handler **) zend_stack_base(&OG(handlers));
1324+
php_output_handler **handlers = (php_output_handler **) zend_stack_base(&ASYNC_OG(handlers));
13251325
for (int handler_num = 0; handler_num < handler_count; ++handler_num) {
13261326
php_output_handler *curr_handler = handlers[handler_num];
13271327
if (curr_handler == orphan) {

0 commit comments

Comments
 (0)