Fixed bug in enabling php error reporting