3 ms·
> iniSettings(); > enforceHTTPS(); > session_start(); > Global state things directly exposed to the user (programmer in this case). The problem here is, that
by hu3 3y ago
> iniSettings();
> enforceHTTPS();
> session_start();
> Global state things directly exposed to the user (programmer in this case). The problem here is, that this kind of thing immediately fails, when things start to use concurrency of any kind, because suddenly one has multiple processes concurrently setting global settings, without any kind of mutex in between.
No offense but I take it you don't have much experience with PHP (and that's fine).
Because your complain is exactly one of the beautiful things in PHP.
It's all per request.
It doesn't break.
You don't have to think about mutexes.