hhvm
hhvm copied to clipboard
php://memory == php://tempfile
php://memory is backed by TempFile, not MemFile - is this intentional? Zend is never disk-backed for php://memory
Found out by investigating why fstat fails on an UrlFile - backed by MemFile which doesn't implement it, then got confused by fstat working on php://memory
It MemFile isn't writable, wouldn't be hard to add a MutableMemFile that would work for this. Additionally in PHP php://tempfile is initially memory backed, but we immediately write to disk.
@paulbiss Any progress on this in the last year and a half?
This issue still reproduces on an hhvm build from June 2025.