Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission Error Writing a file on Windows 10 & PHP 7.4 #36

Closed
teleclient opened this issue Feb 18, 2020 · 12 comments
Closed

Permission Error Writing a file on Windows 10 & PHP 7.4 #36

teleclient opened this issue Feb 18, 2020 · 12 comments

Comments

@teleclient
Copy link

The same error happens, no matter what the permissions are.
The same exact code works fine under Linux.


Exception: fwrite(): write of 8192 bytes failed with errno=13 Permission denied in BlockingFile.php:66

Previous TL trace:
exceptionErrorHandler()
BlockingFile.php(66): fwrite()
Files.php(1153): write()

trowski added a commit that referenced this issue Feb 21, 2020
@Pato05
Copy link

Pato05 commented Apr 13, 2020

Same here: https://del.dog/uthobinaca.txt

@valery-lavrik
Copy link

I also have this problem, no solution yet?

@valery-lavrik
Copy link

valery-lavrik commented Feb 9, 2021

image

Failed writing to file handle: fwrite(): write of 8192 bytes failed with errno=13 Permission denied

@kelunik
Copy link
Member

kelunik commented Feb 9, 2021

Does it work without amphp/file?

@valery-lavrik
Copy link

image
Oh sure. I tried to reproduce this example, it worked great
Can fopen() open in the wrong mode?

@kelunik
Copy link
Member

kelunik commented Feb 10, 2021

Yes, maybe that's the case. How do you open the file?

@valery-lavrik
Copy link

I don't know, this is not my library. I just use it and find it breaks at this point. And I have no idea why ...

@valery-lavrik
Copy link

Can the developer of this library tell me?
@amphp-bot

@kelunik
Copy link
Member

kelunik commented Feb 10, 2021

Not within the library, but rather how you use the library to open the file. Please post a full example to reproduce the issue.

@xtrime-ru
Copy link

@phonesorvixay
Copy link

i love you

@kelunik kelunik closed this as not planned Won't fix, can't repro, duplicate, stale Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants