{"action":"created","issue":{"url":"https://api.github.com/repos/m6w6/ext-http/issues/20","labels_url":"https://api.github.com/repos/m6w6/ext-http/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/m6w6/ext-http/issues/20/comments","events_url":"https://api.github.com/repos/m6w6/ext-http/issues/20/events","html_url":"https://github.com/m6w6/ext-http/issues/20","id":127918421,"number":20,"title":"$http->setSslOptions() notice w/ curl 7.43","user":{"login":"recipe","id":1947600,"avatar_url":"https://avatars.githubusercontent.com/u/1947600?v=3","gravatar_id":"","url":"https://api.github.com/users/recipe","html_url":"https://github.com/recipe","followers_url":"https://api.github.com/users/recipe/followers","following_url":"https://api.github.com/users/recipe/following{/other_user}","gists_url":"https://api.github.com/users/recipe/gists{/gist_id}","starred_url":"https://api.github.com/users/recipe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/recipe/subscriptions","organizations_url":"https://api.github.com/users/recipe/orgs","repos_url":"https://api.github.com/users/recipe/repos","events_url":"https://api.github.com/users/recipe/events{/privacy}","received_events_url":"https://api.github.com/users/recipe/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/m6w6/ext-http/labels/in%20progress","name":"in progress","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-21T12:55:12Z","updated_at":"2016-01-21T16:33:05Z","closed_at":"2016-01-21T16:32:16Z","body":"#### Description\r\nWhen we try to execute this code:\r\n```php\r\n<?php\r\nerror_reporting(E_ALL);\r\nini_set('display_errors', true);\r\n\r\n$req = new \\http\\Client\\Request(\"GET\", \"http://google.com\");\r\n\r\n$req->setOptions([\r\n    'redirect'       => 10,\r\n    'timeout'        => 30,\r\n    'connecttimeout' => 30,\r\n    'cookiesession'  => true,\r\n]);\r\n\r\n$req->setSslOptions([\r\n    'verifypeer' => false,\r\n    'verifyhost' => false\r\n]);\r\n\r\n$response = (new \\http\\Client())->enqueue($req)->send()->getResponse($req);\r\n\r\nvar_dump($response->getBody()->toString());\r\n```\r\n\r\nIt barks with notices:\r\n```\r\nNotice: http\\Client::enqueue(): Could not set option verifystatus (No error) in /Users/igor/Sites/scalr/test.php on line 20\r\n\r\nNotice: http\\Client::enqueue(): Could not set option ssl (No error) in /Users/igor/Sites/scalr/test.php on line 20\r\n```\r\n\r\n#### System info\r\n```bash\r\n$ php -i | grep -i -A1 \"http support\"\r\nHTTP Support => enabled\r\nExtension Version => 2.5.5\r\n\r\n$ php -i | grep -i \"libcurl\"\r\nlibcurl => 7.43.0 => 7.43.0\r\n\r\n$ curl -V\r\ncurl 7.43.0 (x86_64-apple-darwin15.0) libcurl/7.43.0 SecureTransport zlib/1.2.5\r\nProtocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp \r\nFeatures: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz UnixSockets \r\n\r\n$ php -v\r\nPHP 5.6.16 (cli) (built: Nov 27 2015 10:28:34) \r\nCopyright (c) 1997-2015 The PHP Group\r\nZend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies\r\n```"},"comment":{"url":"https://api.github.com/repos/m6w6/ext-http/issues/comments/173626198","html_url":"https://github.com/m6w6/ext-http/issues/20#issuecomment-173626198","issue_url":"https://api.github.com/repos/m6w6/ext-http/issues/20","id":173626198,"user":{"login":"m6w6","id":1265282,"avatar_url":"https://avatars.githubusercontent.com/u/1265282?v=3","gravatar_id":"","url":"https://api.github.com/users/m6w6","html_url":"https://github.com/m6w6","followers_url":"https://api.github.com/users/m6w6/followers","following_url":"https://api.github.com/users/m6w6/following{/other_user}","gists_url":"https://api.github.com/users/m6w6/gists{/gist_id}","starred_url":"https://api.github.com/users/m6w6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m6w6/subscriptions","organizations_url":"https://api.github.com/users/m6w6/orgs","repos_url":"https://api.github.com/users/m6w6/repos","events_url":"https://api.github.com/users/m6w6/events{/privacy}","received_events_url":"https://api.github.com/users/m6w6/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T16:33:04Z","updated_at":"2016-01-21T16:33:04Z","body":"Thanks for the report! \r\n\r\nThe fix will be in the next release. Apply the patch mentioned above if you want to get rid of the notice in the meantime."}}