PHP FFI on Apple Silicon: your ioctl call is lying to you
I spent an evening building pseudo-terminal support for PHP and lost an hour of it to a bug that reports success. If you use FFI and ioctl anywhere near production, and your CI only runs on Linux, this one is worth ten minutes of your time. The setup PHP can already open a pseudo-terminal. proc_open() accepts ['pty'] descriptors, and on macOS you get a real /dev/ttysNNN back. What you do not get…
We haven't written up this one. Dev.to has the full story — the link below goes straight to it.