When running PHP programs using mod_php
, when does PHP call its extension's MINIT
functions? Does this happen
When the apache web server restarts?
Whenever apache spins up a new thread pool to handle PHP requests?
Whenever apache spins up a new individual thread?
Some other time?
Bonus questions: Is the mod_php
source included as one of the PHP SAPI handles? (apache2handler
?)
If so, is there a place in its source code I could have discovered the answer to my above question?