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

Ken Brown
Sat Oct 8 17:21:25 GMT 2022

On 10/3/2022 12:59 PM, Hans Henrik Bergan wrote:
> @Ken Brown
>> 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"?
> sorry about that, i meant "ab" makes the code work.
> @Andrey Repin
>> php -d 'display_errors=stderr'
>> ?
> adding -d 'display_errors=stderr'  does not make any difference. still
> int(0) NULL

Someone needs to debug this.  Unfortunately, php currently has no Cygwin 
maintainer.  Are you able to run php under gdb to see what's going on?  Even 
better, are you interested in taking over as the php maintainer?

If not, I might try debugging this at some point.  But I have quite a bit of 
Real Life going on at the moment, so I don't know when I'll get to it.


More information about the Cygwin mailing list