[wp-trac] [WordPress Trac] #34794: CURLOPT_SSL_VERIFYHOST should be set to 2 or not be set at all

WordPress Trac noreply at wordpress.org
Thu Nov 26 17:45:30 UTC 2015


#34794: CURLOPT_SSL_VERIFYHOST should be set to 2 or not be set at all
-------------------------------------------+-----------------------------
 Reporter:  FriendlyGreg                   |       Owner:  johnbillion
     Type:  defect (bug)                   |      Status:  reviewing
 Priority:  normal                         |   Milestone:  Future Release
Component:  HTTP API                       |     Version:
 Severity:  normal                         |  Resolution:
 Keywords:  needs-patch reporter-feedback  |     Focuses:
-------------------------------------------+-----------------------------
Changes (by johnbillion):

 * keywords:  needs-patch needs-testing => needs-patch reporter-feedback


Comment:

 And yes, according to
 [http://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYHOST.html cURL's docs]
 and [https://secure.php.net/manual/en/function.curl-setopt.php PHP's
 docs], the default value for `CURLOPT_SSL_VERIFYHOST` is indeed `2`.

 The boolean `false` value should get cast to `0`, but there may be a bug
 there. @FriendlyGreg are you able to test this on your OS X Server 5
 server using `0` instead of `false` and verify if there's a change in
 behaviour?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34794#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list