Xdebug.scream compatibility

Adds `xdebug.scream`  compatibility. Improves #1264.

Now using a temporary error handler to catch PCRE warnings instead of suppress them with `@`.