add xdebug.scream and ext-scream compatibility for #1263, improves #1264
fix non double quoted string
better xdebug check for test
move temporary error handler generator to Util\ErrorHandler::handleErrorOnce()
move safe regex logic to it's own place, + reusability
Merge pull request #1266 from marcioAlmada/feature/regex-exception-message

Xdebug.scream compatibility
Formatting.
Added more exception message tests.
Fixed docblocks.
Formatting.