Skip to content

Commit b8a54b1

Browse files
committed
fix typo on fflush condition
1 parent f42d8bc commit b8a54b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/streams/plain_wrapper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ static int php_stdiop_sync(php_stream *stream)
529529

530530
if (data->file) {
531531
ret = fflush(data->file);
532-
if (ret != 0) {
532+
if (ret == 0) {
533533
return fsync(fileno(data->file));
534534
}
535535
}

0 commit comments

Comments
 (0)