BAC-1225 let php's standard error logger handle compile time errors

(cherry picked from commit 45b0878a23f721962609b387a1ed430537f2f95f)
Merge pull request #2574 from Wikia/BAC-1225

Let standard PHP error handler handle compile time warnings