You seemed to imply that the issues the comment you responded to were not memory-safety issues. But all of them were memory-safety issues. That has nothing to do with PHP or Ruby being memory-safe languages. Their underlying runtime is written in C, and that's why a bug in the runtime for a memory-safe language can still have memory-safety implications.