I'm serving files with Apache and PHP-FPM via FCGI.
When I run
yum update on a live server, what happens when PHP gets updated?
I can imagine three scenarios:
php-fpmis stopped, then restarted after the package has been updated
php-fpmkeeps using the previous PHP version until it's restarted
php-fpmkeeps running and switches PHP versions on the fly, potentially even in the middle of executing a script (e.g. running a script with the old version, and an include with the new version)
Which of these reflects what actually happens?