nginx / php-fpm stops working after new update

NGINX on Debian ships with new configuration files I just updated the nginx package which delivered new configuration files and caused the php-fpm worker to fail. There was no error message in none of those files /var/log/nginx/error.log, /var/log/php-fpm.log and /var/log/syslog . Restarting nginx did not help. When I noticed HTML files got served correctly but…

PHP elephant

configuration container vs globally define()ed contstants

Original thread by Pattle I’m working on a project where all the global constants have been defined in a class called Constants, for example:

Then throughout the code something like Constants::getMaxValue() is used to get the value of a constant. This seems a very strange approach why wouldn’t you just use the define function…