File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
tests/PHPStan/Rules/Functions/data Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -101,10 +101,17 @@ public function curlShare() {
101101 curl_setopt ($ curl , CURLOPT_SHARE , 'this is wrong ' );
102102
103103 $ share = curl_share_init ();
104+ curl_share_setopt ($ share , CURLSHOPT_SHARE , CURL_LOCK_DATA_DNS );
105+ curl_share_setopt ($ share , CURLSHOPT_SHARE , CURL_LOCK_DATA_CONNECT );
106+ curl_share_setopt ($ share , CURLSHOPT_SHARE , CURL_LOCK_DATA_SSL_SESSION );
104107 curl_setopt ($ curl , CURLOPT_SHARE , $ share );
105108
106109 if (function_exists ('curl_share_init_persistent ' )) {
107- $ share = curl_share_init_persistent ();
110+ $ share = curl_share_init_persistent ([
111+ CURL_LOCK_DATA_DNS ,
112+ CURL_LOCK_DATA_CONNECT ,
113+ CURL_LOCK_DATA_SSL_SESSION ,
114+ ]);
108115 curl_setopt ($ curl , CURLOPT_SHARE , $ share );
109116 }
110117 }
You can’t perform that action at this time.
0 commit comments