by turbert 7 hours ago
from a quick skim, it looks like the underlying bug is just not handling object resurrection[1] at all (FreeMe adds a reference to $array while its destructor is called).
I'm not really familiar with PHP but this seems like a surprising oversight for a popular language. Does PHP just not care about memory corruption? The fact that it is this easy is far more surprising than it being used to circumvent a questionable security feature.
> Does PHP just not care about memory corruption
They didn't in the past, it "freed" memory by killing the (per request) worker. Such legacy takes a long time to overcome.