2

When running PHP programs using mod_php, when does PHP call its extension's MINIT functions? Does this happen

  1. When the apache web server restarts?

  2. Whenever apache spins up a new thread pool to handle PHP requests?

  3. Whenever apache spins up a new individual thread?

  4. 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?

Alana Storm
  • 164,128
  • 91
  • 395
  • 599

0 Answers0