fixes for php 5.5
fixes and improvements to the error reporting module