While fixing test failures for
PHP-1510, I noticed that append_getlasterror() (used by the legacy write code path) always inherits fsync and journal for the link, even if they are unset (i.e. -1). This is problematic due to the following, which appears later in the function:
For what it's worth, is_gle_op() only considers fsync/journal options on the link if they are 1, and only then as a fallback if there are no fsync/j options in the write operation itself.