Admittedly, the "restart server process after N connections" method of dealing with memory leaks is not specific to just PHP.
It's also present in Apache, and thus mod_rails and mod_wsgi, by default[1], is an option in Gunicorn[2], and a gem is also available to provide the same in Unicorn.[3]