php error logging, helps identify when php 'crashes' due to for example a double function declaration

php error logging, helps identify when php 'crashes' due to for example a double function declaration, redmine: https://redmine.pfsense.org/issues/4143