4 ms·
Do you have any sources? Maybe some truly ancient version? PHP has done garbage collection (seemingly mixed with some reference counting, like Python) for at le
by coder543 4y ago
Do you have any sources? Maybe some truly ancient version? PHP has done garbage collection (seemingly mixed with some reference counting, like Python) for at least 10 or 15 years... I didn't bother to keep searching for even older information, but nothing I saw indicated that PHP only released memory when the process for a request exited.
I don't even think most mainstream uses of PHP have done the process-per-request model for decades, but I could be wrong.
- tored 4y agoCorrect, garbage collector was added to PHP 5.3, prior to 5.3 PHP did only reference counting. PHP 5.3 was released in June of 2009. Here is a series of articles that describes it in detail https://www.php.net/manual/en/features.gc.php https://www.php.net/manual/en/features.gc.php Especially look at this example where the same script is executed with and without GC https://www.php.net/manual/en/features.gc.performance-considerations.php https://www.php.net/manual/en/features.gc.performance-consid...