if resource is opened with "a" append() will fail with code (6)

This commit is contained in:
raffis 2019-03-28 14:46:25 +01:00
commit f3e9e1e57a
No known key found for this signature in database
GPG key ID: 5E0BF46A67AD81C4

View file

@ -289,7 +289,7 @@ class NativeShare extends AbstractShare {
*/
public function append($source) {
$url = $this->buildUrl($source);
$handle = $this->getState()->open($url, "a");
$handle = $this->getState()->open($url, "a+");
return NativeWriteStream::wrap($this->getState(), $handle, "a", $url);
}