turn on php error reporting ONLY if -debug option is set