Fix bug #77653 (operator displayed instead of the real error message)#5161
Fix bug #77653 (operator displayed instead of the real error message)#5161bukka wants to merge 1 commit intophp:PHP-7.4from
Conversation
nikic
left a comment
There was a problem hiding this comment.
It's been a while since I last looked at this, so I've forgotten some of the context for this change...
I don't quite get why we need \0fscf as the flush command, wouldn't using \n work as well? It seems like the handling for both is basically the same (zlog_stream_str + zlog_stream_finish), just simpler for \n because it's a single character.
75073b8 to
823f907
Compare
@nikic It's because |
|
Merged as ee05793 |
|
I think after this change we are seeing intermittent failures like this: |
|
I think that's because there is a race condition now: Previously (I think) we first flushed stdio and then closed the body stream. Now we do it the other way around. This means that we may have either:
or
Because of this, we may see log messages in both orders. Do you know what we can do against this? It's causing a lot of CI failures. |
Fix for https://bugs.php.net/bug.php?id=77653 . It's #4007 rebased on 7.4.