1--TEST-- 2Bug #63795 (CURL >= 7.28.0 no longer support value 1 for CURLOPT_SSL_VERIFYHOST) 3--EXTENSIONS-- 4curl 5--FILE-- 6<?php 7$ch = curl_init(); 8var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false)); 9/* Case that should throw an error */ 10var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, true)); 11var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0)); 12var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1)); 13var_dump(curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2)); 14 15curl_close($ch); 16?> 17--EXPECTF-- 18bool(true) 19 20Notice: curl_setopt(): CURLOPT_SSL_VERIFYHOST no longer accepts the value 1, value 2 will be used instead in %s on line %d 21bool(true) 22bool(true) 23 24Notice: curl_setopt(): CURLOPT_SSL_VERIFYHOST no longer accepts the value 1, value 2 will be used instead in %s on line %d 25bool(true) 26bool(true) 27