# [RFC] Preloading

- Thread: https://externals.io/message/103365
- Original archive: https://news-web.php.net/php.internals/103365
- Started by Dmitry Stogov on 2018-10-22T11:07:19+00:00
- Messages: 1
- RFC: Preloading (Implemented (PHP 7.4)) — https://externals.io/rfc/preload.md
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #103365 — Dmitry Stogov — 2018-10-22T11:07:19+00:00

URL: https://externals.io/message/103365#103365

Jakub Zelenka <bukka@php.net> schrieb am Fr. 19. Okt. 2018 um 19:13:


> Hi Internals,
>
>
> I would like to start discussion on a Preloadng RFC
> https://wiki.php.net/rfc/preload
>
>
Nice!

Apology if I missed it in the RFC but can't find in which stage the
preloading is done (also haven't checked the patch so sorry if it's
obvious)? I'm mainly interested if it's done in MINIT which would mean
executing that script as a different user when starting FPM as root and
switching the user after fork. Basically what we discussed some time ago:
https://externals.io/message/102052#102065

In the same spirit. Can extensions alteady access the classes in MINIT or only in RINIT?

I didn't get the question. Preloading works at MINIT stage, after all internal extensions.

Dmitry.

<https://externals.io/message/102052#102065>

Cheers

Jakub
