Fixing CURLOPT_SSL_VERIFY_HOST

According to PHP's documentation, that option accepts integer values and not boolean.

> 1 to check the existence of a common name in the SSL peer certificate. 2 to check the existence of a common name and also verify that it matches the hostname provided. In production environments the value of this option should be kept at 2 (default value).

http://php.net/manual/en/function.curl-setopt.php

Recently, libcurl entirely removed support for 1. More info on:
https://bugs.php.net/bug.php?id=63795
http://www.serverphorums.com/read.php?7,620892