techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.6K
active users

#debugginglife

0 posts0 participants0 posts today

Today I learned about the PHP_INI_SCAN_DIR env variable; while its powerfull, it's nice so you can set custom php.inis being loaded.

However, today I *also* learned that php-fpm is a very "clever" piece of software which, while allowing setting env vars in each pool, will not work with PHP_INI_SCAN_DIR. It will set it tho, but in it's infinite wisdom thinks it's a **verry** clever idea to execute any phpini loading BEFORE the pool starts. So yeah.... this variable is absolute worthless in php-fpm. Sure you can set it globally before you start it in systemd, but then you also can just change the php.ini directly or use an include, so whats the point then.

*sigh* and that only cost be 2 hours of my live + wrestling with dbgsyms packages, gdb on a hosting server, stoping all other phpfpms, disabling all other pools, setting the pool to only spawn ever one worker and THEN wrestling with gdb so it actually dosnt detach when forking and also follows it so I can see whats happening..... Gosh lucky it's the weekend already.