libsmbclient-php icon indicating copy to clipboard operation
libsmbclient-php copied to clipboard

fopen does not support the b flag

Open stingray-11 opened this issue 4 years ago • 2 comments

https://www.php.net/manual/en/function.fopen.php

Their documentation doesn't list the 'b' flag in the table but it does in the description and example.

stingray-11 avatar Feb 21 '21 22:02 stingray-11

b is the default, t is what we don't implement, so, if there is no need for t, we can probably wait until there is someone with a real use case for it.

eduardok avatar Feb 22 '21 02:02 eduardok

My use case is simply that I was trying to reuse the same fopen code between SMB and local storage. Without SMB supporting the 'b' flag I need to have SMB override it with the different flags. Not a big deal at all, but it would be nice if it worked.

stingray-11 avatar Feb 22 '21 11:02 stingray-11