mirror of
https://github.com/php/php-src.git
synced 2026-04-22 07:28:09 +02:00
7485978339
This is an automated migration of most SKIPIF extension_loaded checks.
21 lines
576 B
PHP
21 lines
576 B
PHP
--TEST--
|
|
Test curl_getinfo() function with CURLINFO_COOKIELIST parameter
|
|
--EXTENSIONS--
|
|
curl
|
|
--FILE--
|
|
<?php
|
|
|
|
$ch = curl_init();
|
|
curl_setopt($ch, CURLOPT_COOKIELIST, 'Set-Cookie: C1=v1; expires=Thu, 31-Dec-2037 23:59:59 GMT; path=/; domain=.php.net');
|
|
curl_setopt($ch, CURLOPT_COOKIELIST, 'Set-Cookie: C2=v2; expires=Thu, 31-Dec-2037 23:59:59 GMT; path=/; domain=.php.net');
|
|
var_dump(curl_getinfo($ch, CURLINFO_COOKIELIST));
|
|
|
|
?>
|
|
--EXPECT--
|
|
array(2) {
|
|
[0]=>
|
|
string(38) ".php.net TRUE / FALSE 2145916799 C1 v1"
|
|
[1]=>
|
|
string(38) ".php.net TRUE / FALSE 2145916799 C2 v2"
|
|
}
|