rfc:fsync_function

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
rfc:fsync_function [2021/02/01 17:31] – add fdatasync to proposal dwgeblerrfc:fsync_function [2021/02/02 16:56] – updated example code in accordance with implementation tests dwgebler
Line 28: Line 28:
 bool(false) bool(false)
  
-$fp = fopen('file.txt', 'r'); +$fp = fopen('php://stdin', 'w');
-// Can't fsync / fdatasync read-only file, but it is a valid file handle, so we just return false with no warning.+
 var_dump(fsync($fp)); var_dump(fsync($fp));
 bool(false) bool(false)
rfc/fsync_function.txt · Last modified: 2021/04/13 14:10 by nikic