1--TEST-- 2Test curl_getinfo() function with CURLINFO_COOKIELIST parameter 3--SKIPIF-- 4<?php if (!extension_loaded("curl")) print "skip"; 5$curl_version = curl_version(); 6if ($curl_version['version_number'] < 0x070e01) { 7 exit("skip: test works only with curl >= 7.14.1"); 8} 9?> 10--FILE-- 11<?php 12 13$ch = curl_init(); 14curl_setopt($ch, CURLOPT_COOKIELIST, 'Set-Cookie: C1=v1; expires=Thu, 31-Dec-2037 23:59:59 GMT; path=/; domain=.php.net'); 15curl_setopt($ch, CURLOPT_COOKIELIST, 'Set-Cookie: C2=v2; expires=Thu, 31-Dec-2037 23:59:59 GMT; path=/; domain=.php.net'); 16var_dump(curl_getinfo($ch, CURLINFO_COOKIELIST)); 17 18?> 19--EXPECT-- 20array(2) { 21 [0]=> 22 string(38) ".php.net TRUE / FALSE 2145916799 C1 v1" 23 [1]=> 24 string(38) ".php.net TRUE / FALSE 2145916799 C2 v2" 25} 26