Skip to content

Releases: amphp/file

1.0.0

14 Sep 03:42
80cfffa
Compare
Choose a tag to compare

This release is, in most cases, backward compatible with v0.3.x if this library was only used for async file access.

Uses of Amp\File\Handle should be replaced with Amp\File\File, as Amp\File\Handle will be removed in a future major release.

Please review the changes below to determine if further changes are needed for your code.

  • Handle has been deprecated in favor of File, which extends Handle for backward compatibility. Uses of Handle should be updated to File. Thus, the promise returned from Driver::open() should resolve with an instance of File.
  • BlockingHandle, EioHandle, ParallelHandle, and UvHandle have been renamed respectively to BlockingFile, EioFile, ParallelFile, and UvFile.
  • All classes, except FilesystemException, are now declared final.
  • Amp\File\driver() has been renamed to Amp\File\createDefaultDriver().
  • File adds a truncate() method to resize the file to a given length.

0.3.5

01 Mar 17:06
ba57064
Compare
Choose a tag to compare
  • Fixed an error calculating file length when writing to files with the UV extension if the file was opened in append mode.

0.3.4

01 Mar 17:01
654596e
Compare
Choose a tag to compare

Accidental tag on master when v0.3.x branch should have been tagged. Ignore this release.

0.3.3

29 Oct 03:56
25d8ef6
Compare
Choose a tag to compare
  • Fixed stat result when using UvDriver (#29)
  • Fixed readlink implementation when using EioDriver or UvDriver (#30)
  • Fixed scandir when reading an empty directory when using UvDriver (#23)
  • Results returned from scandir are now alphabetically sorted when using EioDriver (now matches results from other drivers).
  • Added isSupported() method to EioDriver and UvDriver, returning a bool determining if the driver can be used.

0.3.2

27 Oct 15:28
836e0eb
Compare
Choose a tag to compare

Updated to amphp/parallel v1.0.

0.3.1

13 May 10:40
v0.3.1
Compare
Choose a tag to compare
  • Fixed default permissions for mkdir(). These previously were 0644, which doesn't really make sense, because it doesn't allow listing. New default is 0777 like PHP's default, which will usually result in 0755 with the umask.

0.3.0

15 Dec 15:52
fb58fe8
Compare
Choose a tag to compare
  • All SAPIs (not only CLI) will use ParallelDriver if ext-eio and ext-uv are not installed.
  • Windows can now use ParallelDriver
  • The 'e' flag is automatically used when opening files (#20)
  • Added optional parameters $time and $atime to Amp\File\touch() and Driver::touch() (#22)
    This is only a breaking change if you implement the Driver interface yourself.

0.2.4

24 Jul 14:57
v0.2.4
Compare
Choose a tag to compare
  • Use BlockingDriver for SAPIs other than cli and phpdbg.

0.2.3

18 Jul 06:04
169a1d1
Compare
Choose a tag to compare
  • Workers created by the amphp/parallel package will not use ParallelDriver to avoid launching another worker from within a worker. BlockingDriver is used if eio or uv is not available.
  • StatCache is now used in ParallelDriver in the same way as EioDriver and UvDriver.

0.2.2

07 Jul 08:28
5bac9ec
Compare
Choose a tag to compare
  • The ParallelHandle::seek() function now doesn't set the handle to busy, similarly to the other handle implementations.