Cygwin 3.3.6: PHP's SplFileObject::fwrite seems broken

Ken Brown
Sun Oct 2 00:39:08 GMT 2022

On 10/2/2022 1:16 AM, Hans Henrik Bergan wrote:
> ... actually i forgot that the default fopen mode is "rb"
> changing the code to SplFileObject("bug.txt", "rb");
> makes the code work

I don't think you wrote what you meant.  You're not saying that explicitly 
specifying the default value changes the behavior, are you?  Maybe you meant to 
say that the default mode is "r"?


More information about the Cygwin mailing list