Bug #47030 (separate host and peer verification)

This PR addresses [Bug # 47030](https://bugs.php.net/bug.php?id=47030)