added support for dumping php errors and exceptions - dumpPhp functions